Re: How to get buttonType from NSButton
Re: How to get buttonType from NSButton
- Subject: Re: How to get buttonType from NSButton
- From: mmalcolm crawford <email@hidden>
- Date: Thu, 18 May 2006 00:32:16 -0700
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