I think what you want is to set the button to enabled or not through
the action of another button? Since NSButton is a subclass on
NSControl you could use the setEnabled method.
interface
IBOutlet NSButton *Abutton;
IBOutlet NSButton *Bbutton;
implementation
-(IBAction)someActionMethod:(id)selector
{
[Abutton setEnabled:NO];
[Bbutton setEnabled:YES];
.......
..........
...........
}
You can set the state of the other button in the action method.
On Jun 5, 2009, at 6:41 AM, Shraddha Karwan wrote:
I have a series of buttons of type NSButton.
When a particular button is selected, I want to make it appear gray
as in
this button is selected. When another button is selected, I need to
change
the color of the previously selected button from Gray to normal. By
gray I
mean textured.
How do I achieve this?
--
Regards,
Shraddha Karwan
Success usually comes to those who are too busy to be looking for it.
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/tomhoh%40mac.com
This email sent to tom...@mac.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com