Getting a reference to an NSMenuItem from another nib?
Getting a reference to an NSMenuItem from another nib?
- Subject: Getting a reference to an NSMenuItem from another nib?
- From: "Theodore H. Smith" <email@hidden>
- Date: Tue, 14 Jun 2005 13:52:44 +0100
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];
So, where do I get this somemenu from? Because I can't draw
connections from one nib to another nib.
Is there some way to get both the menu and the NSDocument into the
same nib? The menu needs an NSApplication file's owner, and also my
window needs an NSDocument file's owner. I don't suppose I can put
two file's owners into the nib?
I can see myself wanting to often draw up connections between
different nibs. How is this best done, in general?
--
http://elfdata.com/plugin/ Industrial strength string processing,
made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
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