• 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
how to load an NSMenu out of a nib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to load an NSMenu out of a nib?


  • Subject: how to load an NSMenu out of a nib?
  • From: Rua Haszard Morris <email@hidden>
  • Date: Thu, 9 Apr 2009 09:47:20 +1200

I'm baffled, this seems fundamental, I can't see how it's done!

I have a Menu in a nib file, which I need to use in a few places in code. So I want to do something like

NSMenu* myMenu = [NSMenu menuFromNib:@"MyNibFile" name:@"MyUsefulMenu"];

Is this possible - how can this be done?

I have looked at the NSMenu reference, how to unarchive Carbon menus (but there is no toll free mapping/other conversion between MenuRef and NSMenu?). It seems the only way to get this working is to have an class with an outlet specifically for receiving a reference to my menu - which seems indirect...

Hopefully this is a dumb question and there's an easy answer...

thanks
Rua HM.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: how to load an NSMenu out of a nib?
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
  • Next by Date: RE: Creating an ordered list for combo-box content from a Core Data entity attribute
  • Previous by thread: Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
  • Next by thread: Re: how to load an NSMenu out of a nib?
  • Index(es):
    • Date
    • Thread