Re: Getting a reference to an NSMenuItem from another nib?
Re: Getting a reference to an NSMenuItem from another nib?
- Subject: Re: Getting a reference to an NSMenuItem from another nib?
- From: Pandaa <email@hidden>
- Date: Tue, 14 Jun 2005 18:32:47 +0200
14 jun 2005 kl. 18.08 skrev Theodore H. Smith:
Using isEqualToString indeed is a bad practice, because it is both
slower than necessary and will not work well with localization.
Use selectors instead.
How do you use selectors from within validateMenuItem?
Do you get a selector from the menuitem itself? Or from a
dictionary? Or something else?
From the menu item itself, [theMenuItem action].
See, e.g.:
http://www.cocoadev.com/index.pl?NSMenuValidation
http://www.omnigroup.com/mailman/archive/macosx-dev/2002-September/
029615.html
Hope it works out! :)
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . .
. email@hidden . . www.synapticpulse.net .
_______________________________________________
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