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

NSPanel, changing the look of the min button


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

I have an NSPanel and I want to change the look of the min button and completely hide the resize button.  The min button I want to make into a bezel style of a disclosure triangle.  I am using this line of code to access the min button but it returns nil in my controllers' windowDidLoad.

NSButton *minButton = [[self window] standardWindowButton:NSMiniaturizableWindowMask];

Just as a test, I changed to style mask to NSClosableWindowMask and it does return the correct theme widget.  Not sure why the min mask is not returning the correct widget.  Also, any comment on the approach or should I be looking at a completely different path?  I know one alternatively is to completely write my own header and draw things the way I want.

The second question is, how do I completely hide the resize button, it's disabled via IB, but the button still shows(albeit disabled).

Thanks,
-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: John Joyce <email@hidden>
    • Re: NSPanel, changing the look of the min button
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Detecting a remote volume
  • Next by Date: Re: NSPanel, changing the look of the min button
  • Previous by thread: Re: Detecting a remote volume
  • Next by thread: Re: NSPanel, changing the look of the min button
  • Index(es):
    • Date
    • Thread