• 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: Application Menu - Preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application Menu - Preferences


  • Subject: Re: Application Menu - Preferences
  • From: David Blanton <email@hidden>
  • Date: Wed, 24 Feb 2010 13:58:25 -0700

Good Tip.  Thanks.

What I was really getting at is how to set the target / action for when the item is selected. Here is what I did, so if this is way off base please let me know.

I sub-classed NSMenuItem and set the Preferences menu item to this class.

In the awakeFromNib I set the target and action.

Am I doing too much?  Is there a 'less code' approach?

-db

On Feb 24, 2010, at 1:46 PM, Paul Bruneau wrote:


On Feb 24, 2010, at 3:28 PM, David Blanton wrote:

In an NSDocument app where should or how should the Application Preferences menu item be connected?

This is kind of old, and its main focus is bindings, but it gives you everything you need I think


http://developer.apple.com/cocoa/cocoabindings.html





_______________________________________________

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: Application Menu - Preferences
      • From: Quincey Morris <email@hidden>
    • Re: Application Menu - Preferences
      • From: Paul Bruneau <email@hidden>
References: 
 >Application Menu - Preferences (From: David Blanton <email@hidden>)
 >Re: Application Menu - Preferences (From: Paul Bruneau <email@hidden>)

  • Prev by Date: Re: Leak on iPhone Application start up.
  • Next by Date: Re: Leak on iPhone Application start up.
  • Previous by thread: Re: Application Menu - Preferences
  • Next by thread: Re: Application Menu - Preferences
  • Index(es):
    • Date
    • Thread