• 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: Jeff Johnson <email@hidden>
  • Date: Wed, 27 Oct 2010 22:04:27 -0500

On Oct 27, 2010, at 8:28 PM, Quincey Morris wrote:

> 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.

I was aware of the documentation, and you appear to have it backwards:

NSMomentaryLightButton
While the button is held down it’s shown as “lit,” and also “pushed in” to the screen if the button is bordered.

NSMomentaryPushInButton
While the button is held down it’s shown as “lit.”

Nonetheless, one would expect that NSMomentaryPushInButton would also be pushed in, given its name. And as I said, there seems to be no difference in behavior.

-Jeff

_______________________________________________

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: Quincey Morris <email@hidden>
References: 
 >NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton (From: Jeff Johnson <email@hidden>)
 >Re: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
  • Next by Date: Re: Drag and drop between two table views.
  • Previous by thread: Re: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
  • Next by thread: Re: NSMomentaryLightButton vs. NSMomentaryPushInButton and NSPushOnPushOffButton vs. NSOnOffButton
  • Index(es):
    • Date
    • Thread