awakeFromNib and action question
awakeFromNib and action question
- Subject: awakeFromNib and action question
- From: Terry Simons <email@hidden>
- Date: Mon, 29 Jul 2002 02:24:11 -0600
I'd like for my NSMatrix object to call the action of the currently
selected radio button that it contains, but I can't figure out how to do
it.
Here's how my program is set up:
A list of radio buttons in an NSMatrix. (IBOutlet id myRadioMatrix;)
When a radio button is clicked, it performs an action. (-
(IBAction)doChangeColor:(id)sender)
I'd like to simulate that action in my awakeFromNib method for the radio
button that is selected by default, but I can't seem to figure out how
to simulate an action.
It seems that I need to send a mouseDown message (or something) to
[myRadioMatrix selectedCell].
I looked at some of the NSControl documentation, and the action, and
sendAction:to: methods looked pretty good, but I can't seem to figure
out how to do what I'd like to do.
Any ideas?
Thanks,
- Terry
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.