• 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: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
      • From: Jeff Johnson <email@hidden>
References: 
 >NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton (From: Jeff Johnson <email@hidden>)

  • Prev by Date: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
  • Next by Date: Re: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
  • Previous by thread: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
  • Next by thread: Re: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
  • Index(es):
    • Date
    • Thread