Re: How to get buttonType from NSButton
Re: How to get buttonType from NSButton
- Subject: Re: How to get buttonType from NSButton
- From: RameshPVK <email@hidden>
- Date: Thu, 18 May 2006 12:49:14 +0530
On May 17, 2006, at 12:32 AM, email@hidden wrote:
On May 16, 2006, at 2:34 AM, RameshPVK wrote:
How to get the button type from NSButton. Example , I have created
a button of type NSSwitchButton. What is the method to inspect the
type on that button.
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. Why do you need to know what type a
button is?
mmalc
I need to assign skins and some extra information at runtime based
on that type. Is there any reason for making it as a write-only
value. Based on what properties i can know the type of the button?.
_______________________________________________
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