• 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
NSButton Behaviors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSButton Behaviors


  • Subject: NSButton Behaviors
  • From: "Frank D. Engel, Jr." <email@hidden>
  • Date: Fri, 28 Sep 2007 21:05:21 -0400

Making progress here, but I came up with another question.

This might be unusual, but there is a reason for the behavior I am trying to achieve -- it works with my interface, trust me!


I need to create a button that shows its alternate image while the button is down and the normal image when the button is released. The "Momentary Change" mode does this.


HOWEVER, I also need a bound variable (or some similar notification method back to the program) to be set based on whether or not the button is highlighted -- like a "Toggle" button -- rather than just triggering an action on button release.

I can't identify any of the standard modes that will do this.

Does this require subclassing NSButton, or is there some other clever way to accomplish this feat which I'm currently missing?


Any hints would be appreciated...

Thank you!


----------------------------------------------------------- Frank D. Engel, Jr. <email@hidden>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
$


_______________________________________________

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: NSButton Behaviors
      • From: "I. Savant" <email@hidden>
  • Prev by Date: AIFF files and Disc Recording
  • Next by Date: Re: NSButton Behaviors
  • Previous by thread: Re: AIFF files and Disc Recording
  • Next by thread: Re: NSButton Behaviors
  • Index(es):
    • Date
    • Thread