• 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
Handling menu actions in doc-based apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Handling menu actions in doc-based apps


  • Subject: Handling menu actions in doc-based apps
  • From: Dan Price <email@hidden>
  • Date: Thu, 30 Mar 2006 12:13:46 +0100 (BST)

Here’s the situation. I have my menubar in
MainMenu.nib and my model in MyDoc.nib. I need to have
menu-items linked to actions in the model but this
doesn’t seem to be possible because the doc instance
is in the other nib. I can sort-of get it work by
adding the doc-action names to the FirstResponder
class in MainMenu.nib, connecting the menu items to
those and ensuring the document view has like-named
actions and is the First Responder. This isn’t ideal
because it means using the document-view to pass on
actions to the NSDocument subclass. Am I missing something?



___________________________________________________________
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/
 _______________________________________________
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: Handling menu actions in doc-based apps
      • From: Paul Lynch <email@hidden>
  • Prev by Date: Re: Round Rect
  • Next by Date: Re: single-document application
  • Previous by thread: Re: single-document application
  • Next by thread: Re: Handling menu actions in doc-based apps
  • Index(es):
    • Date
    • Thread