• 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: Menus in a document based application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menus in a document based application


  • Subject: Re: Menus in a document based application
  • From: Jim Correia <email@hidden>
  • Date: Fri, 5 Aug 2005 15:06:38 -0400

On Aug 5, 2005, at 2:50 PM, Colin Cornaby wrote:

I'm trying to use menus in my document based application but am having a problem. A controller in my NSDoc contains the selector that the menu needs to call. I found on the list that the best way to go about linking a menu to a document was to add the selector to the first responder in the application nib, and then set the selector for the menu to that. However, the problem is an NSDocument is not going to be on the responder chain.

Have you actually tried it?

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSDocument.html>

"When going up the responder chain, the Application Kit queries a window’s NSDocument, if it exists, just after it queries the window delegate, if that is different from the NSDocument."

Jim _______________________________________________
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


References: 
 >Menus in a document based application (From: Colin Cornaby <email@hidden>)

  • Prev by Date: Re: Core Data Based Application Bug?
  • Next by Date: Hiding the disclosure triangle in NSOutlineView
  • Previous by thread: Menus in a document based application
  • Next by thread: Hiding the disclosure triangle in NSOutlineView
  • Index(es):
    • Date
    • Thread