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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com