Re: NSDocument: Connecting the menubar to objects?
Re: NSDocument: Connecting the menubar to objects?
- Subject: Re: NSDocument: Connecting the menubar to objects?
- From: Eric Brunstad <email@hidden>
- Date: Tue, 14 Jun 2005 19:18:56 -0400
On Jun 14, 2005, at 10:31 AM, Gorazd Krosl wrote: If your document instance responds to more than one menu item, you can distingush between them by obtaining selector as NSString (using NSStringFromSelector and -action message sent to menu item passed to your validation method) and performing proper action according to the menu item passed in.
HTH Gorazd
or use @selector(methodName:) to get a selector |
_______________________________________________
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