• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting a reference to an NSMenuItem from another nib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting a reference to an NSMenuItem from another nib?
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Multiple movable modals
  • Next by Date: NSOutlineView + NSTreeController + Drag & Drop
  • Previous by thread: Re: Multiple movable modals
  • Next by thread: Re: Getting a reference to an NSMenuItem from another nib?
  • Index(es):
    • Date
    • Thread