Re: NSPanel, changing the look of the min button
Re: NSPanel, changing the look of the min button
- Subject: Re: NSPanel, changing the look of the min button
- From: Kyle Sluder <email@hidden>
- Date: Mon, 2 Aug 2010 15:36:37 -0700
On Mon, Aug 2, 2010 at 3:31 PM, Tony Romano <email@hidden> wrote:
> 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?
I believe the buttons are actually private subclasses of NSButton
whose drawing methods completely ignore most of the button flags.
How are you trying to change the minimize button? Would it be better
to instead change the behavior of the zoom button? Panels aren't
supposed to have (enabled) minimize buttons as per the HIG.
--Kyle Sluder
_______________________________________________
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