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: Sherm Pendley <email@hidden>
- Date: Tue, 14 Jun 2005 09:16:24 -0400
On Jun 14, 2005, at 8:52 AM, Theodore H. Smith wrote:
Let's say that I have an NSDocument based app, which as we know
comes by default in two nibs.
So, I want to use manual menu enabling. This means my NSDocument
must call:
[someMenu setEnabled:b];
No, it doesn't mean you must do that.
A better choice would be to implement the NSMenuValidation protocol
in your NSDocument subclass.
I can see myself wanting to often draw up connections between
different nibs. How is this best done, in general?
In general, it's best *not* done. If you find yourself thinking you
need to, it's very often a sign that you should re-think your higher
level design.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
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