• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWindow styleMask and full screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: NSWindow styleMask and full screen (From: Lee Ann Rucker <email@hidden>)

  • Prev by Date: Re: NSWindow styleMask and full screen
  • Next by Date: Re: -[NSFileHandle readInBackgroundAndNotify] opens the file again
  • Previous by thread: Re: NSWindow styleMask and full screen
  • Next by thread: How to create multi-resolution NSImage programmatically?
  • Index(es):
    • Date
    • Thread