Re: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
Re: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
- Subject: Re: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
- From: Quincey Morris <email@hidden>
- Date: Wed, 27 Oct 2010 18:28:59 -0700
On Oct 27, 2010, at 18:15, Jeff Johnson wrote:
> Is there a difference between NSMomentaryLightButton and NSMomentaryPushInButton? What about between NSPushOnPushOffButton and NSOnOffButton? I've created buttons of all different bezel styles, and I can't see any difference in appearance or behavior between the above mentioned button types.
>
> Google reveals an old copy of "Button Programming Topics for Cocoa" that says NSMomentaryLightButton and NSOnOffButton were deprecated. However, the section "Deprecated Buttons" was removed from that document on 2008-10-15. So those types were deprecated and then un-deprecated?
There's a listing of the button types here:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSButtonCell_Class/Reference/Reference.html
including which of them are deprecated. The difference between NSMomentaryLightButton and NSMomentaryPushInButton appears to be that one is "lit" when pressed, the other isn't. Both are "pushed in" when pressed.
It doesn't say here, but I think that "lit" only applies to buttons with template images incised into them. This was introduced in the Leopard release notes, so I expect you might find in that document a description of what the various combinations are intended for.
_______________________________________________
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