Re: Cocoa-dev Digest, Vol 5, Issue 219
Re: Cocoa-dev Digest, Vol 5, Issue 219
- Subject: Re: Cocoa-dev Digest, Vol 5, Issue 219
- From: Daniel Child <email@hidden>
- Date: Tue, 12 Feb 2008 23:28:56 -0500
Actually, I was abbreviating. getUserChoice does have (id) sender as
an argument. But the key is that I had forgotten to set the target.
All works well now. Thanks!
On Feb 12, 2008, at 5:08 PM, email@hidden wrote:
All the working actions I've ever seen have one argument. As you have
written it, "getUserChoice" has 0 arguments. "getUserChoice:" (note
the colon) has one argument. The full declaration is -
(IBAction)getUserChoice:(id)sender.
Another thing which can cause menus to not be enabled is if you've
implemented -validateMenuItem: or -validateUserInterfaceItem: in some
object in the responder chain which is returning NO for unknown items.
Finally, remember to -setTarget: in your menu items.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden