• 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: How to get buttonType from NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get buttonType from NSButton


  • Subject: Re: How to get buttonType from NSButton
  • From: Thilo Ettelt <email@hidden>
  • Date: Thu, 18 May 2006 09:51:15 +0200

Maybe this is a work around for you:
You could set a tag (each representing a button type) with each creation of a button.



- Thilo

Am 18.05.2006 um 09:32 schrieb mmalcolm crawford:


On May 18, 2006, at 12:19 AM, RameshPVK wrote:

There isn't a way.  'setButtonType:' is a write-only value.  The
button type is set by configuring more than one attribute; you can
only try to infer what type a button is by asking for the values of
each of those attributes.

Is there any reason for making it as a write-only value. Based on what properties i can know the type of the button?.

The properties are still independent. Perhaps you could think of it like a "combo meal" in a fast food restaurant. You can ask for a #3 meal, and looking at what you have at the table someone might deduce what you ordered, but you could still in theory have specified the drink and chips independently. You can also order à la carte...

You can probably infer the base properties for a type from <http:// developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ ObjC_classic/Classes/NSButtonCell.html#//apple_ref/doc/c_ref/ NSMomentaryLightButton>.

It's probably also worth filing an enhancement request to have the type information stored with the button.

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: How to get buttonType from NSButton (From: RameshPVK <email@hidden>)
 >Re: How to get buttonType from NSButton (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Variable scope/lifetime of class methods (concerns Threads)
  • Next by Date: Re: NSAppleScript and script editor
  • Previous by thread: Re: Variable scope/lifetime of class methods (concerns Threads)
  • Next by thread: Overriding mouseMoved events in ScreenSaverView
  • Index(es):
    • Date
    • Thread