Re: NSWindow styleMask and full screen
Re: NSWindow styleMask and full screen
- Subject: Re: NSWindow styleMask and full screen
- From: Gideon King <email@hidden>
- Date: Fri, 20 Jul 2012 13:20:16 +1000
It turns out that on 10.6+ at least, just setting the button cell to enabled does the trick:
NSButton *button = [window standardWindowButton:NSWindowMiniaturizeButton];
NSButtonCell *buttonCell = [button cell];
[buttonCell setEnabled:YES];
Still, it's definitely an Apple bug, and I'll file a bug report.
Regards
Gideon
On 20/07/2012, at 12:16 PM, Lee Ann Rucker <email@hidden> wrote:
> It's an Apple bug - I meant to file it but apparently didn't; I should do that. It's nothing to do with the styleMask; sometimes the window sets the buttonCell's temporarilyDisabled flag and doesn't restore it.
>
> From a comment in my code:
> * temporarilyDisabled should only be YES when the menubar is hidden, but sometimes
> * the window code gets confused and doesn't reset it for windows that
> * were changing state at the same time as the menu.
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden