• 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: NSPanel, changing the look of the min button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPanel, changing the look of the min button


  • Subject: Re: NSPanel, changing the look of the min button
  • From: Tony Romano <email@hidden>
  • Date: Mon, 2 Aug 2010 15:31:14 -0700

Thanks, I totally misread that.

Changing the argument to the correct flag gets me the button, however, setting the style doesn't have any effect.  I moved the code to initWithContentRect: post the call to super, still no change.  I introspected the view with F-Script and it has the bezel style I set but the window still draws the standard widget.  Any other ideas?

-Tony

On Aug 2, 2010, at 2:53 PM, Kyle Sluder wrote:

> On Aug 2, 2010, at 2:47 PM, Tony Romano <email@hidden> wrote:
>
>> NSButton *minButton = [[self window] standardWindowButton:NSMiniaturizableWindowMask];
>
> You're using the wrong flag here. You want one of the NSWindowButton flags. See the documentation for -standardWindowButton:.
>
>
>>
>> The second question is, how do I completely hide the resize button, it's disabled via IB, but the button still shows(albeit disabled).
>
> You don't hide this button as that violates the HIG.
>
> --Kyle Sluder

-Tony

_______________________________________________

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

  • Follow-Ups:
    • Re: NSPanel, changing the look of the min button
      • From: Uli Kusterer <email@hidden>
    • Re: NSPanel, changing the look of the min button
      • From: Quincey Morris <email@hidden>
    • Re: NSPanel, changing the look of the min button
      • From: Kyle Sluder <email@hidden>
References: 
 >NSPanel, changing the look of the min button (From: Tony Romano <email@hidden>)
 >Re: NSPanel, changing the look of the min button (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSPanel, changing the look of the min button
  • Next by Date: Re: NSPanel, changing the look of the min button
  • Previous by thread: Re: NSPanel, changing the look of the min button
  • Next by thread: Re: NSPanel, changing the look of the min button
  • Index(es):
    • Date
    • Thread