• 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
Re: Programatically creating NSMenu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically creating NSMenu?


  • Subject: Re: Programatically creating NSMenu?
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 9 Apr 2009 02:08:16 +0200

On 08.04.2009, at 15:13, Daqi Pei wrote:
Again I'm doing this only to understand how the system works. Did I miss
something or it's just the way the framework was designed?


It's how Cocoa was designed. In general, you don't need this level of detailed knowledge.

For practical uses, the approach generally recommended (and least likely to break with system updates), is to create a minimal NIB as the main NIB (one that only contains the application menu, and nothing else) and then modify that in code.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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


References: 
 >Programatically creating NSMenu? (From: Daqi Pei <email@hidden>)

  • Prev by Date: Re: how to load an NSMenu out of a nib?
  • Next by Date: Re: noob: Question about senders and views
  • Previous by thread: Re: Programatically creating NSMenu?
  • Next by thread: NSTask & Quitting Processes ...
  • Index(es):
    • Date
    • Thread