VBK
VBK

Reputation: 1555

NSWindow hides when title bar is unchecked

For some reason when i uncheck the title bar in the attributes inspector of the window. It doesn't show on startup. But when i check it , it shows up. Anyone know how to fix this ?

Upvotes: 1

Views: 101

Answers (1)

VBK
VBK

Reputation: 1555

I solved it by subclassing NSWindow and overriding its function

- (BOOL)canBecomeKeyWindow {

return YES;

}

Upvotes: 2

Related Questions