• 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: Making custom key-commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making custom key-commands


  • Subject: Re: Making custom key-commands
  • From: James Maxwell <email@hidden>
  • Date: Tue, 18 Dec 2007 10:41:16 -0800

Okay, I've been trying to get this working, but I'm not getting anywhere. I think this is because I'm creating a document-based application, and I can't figure out how to get the main menu to talk to my document's view.
Does anyone know of a piece of sample code for getting key commands and their associated menu items working in a document-based app?


This is a bit of a nightmare, right now, but I'm hoping it will become clearer soon...

thanks,

J.


On 17-Dec-07, at 2:10 PM, Nick Zitzmann wrote:


On Dec 17, 2007, at 3:08 PM, email@hidden wrote:

The only thing that bothers me a bit about this is that some of the commands I have in mind change depending on the selected object. Would that just be a matter of having different classes handle the menu commands differently?

You can deal with that by using the NSMenu delegate methods, added to Panther & later.


BTW, Are the menu key-commands set-up in IB, or are they coded?


You can do it either way.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

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: Making custom key-commands
      • From: William Turner <email@hidden>
References: 
 >Making custom key-commands (From: James Maxwell <email@hidden>)
 >Re: Making custom key-commands (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: How to implement an "Accordion" view?
  • Next by Date: Core Data SQLite store problems?
  • Previous by thread: Re: Making custom key-commands
  • Next by thread: Re: Making custom key-commands
  • Index(es):
    • Date
    • Thread