Re: How do I distinguish between radio and switch buttons?
Re: How do I distinguish between radio and switch buttons?
- Subject: Re: How do I distinguish between radio and switch buttons?
- From: Erik Buck <email@hidden>
- Date: Thu, 7 Dec 2006 14:20:38 -0800 (PST)
It is not a property of a button that makes it a radio button. It is a property of the enclosing NSMatrix that defined whether a button is a radio button or not.
If you want to know whether a button cell LOOKs like a radio button, just determine if its icon is the icon used to indicate radio buttons. However, absolutely any button cell can be a radio button cell just by virtue of being in an NSMatrix that uses radio selection mode. It ultimately doesn't matter what the button looks like. Appearance and function are totally separate except that users are confused if you make a button cell look like a radio button and then don't put the cell in a matrix that uses radio selection mode.
It sounds like you want to change the appearance of all button cells that use the radio button icons. If so, just change the icons used by such cells.
The set defines as all non-radio buttons includes every button because there is no such thing as a radio button. Mutually exclusive selection is a property of a matrix, not a button.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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