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

Menus in a document based application


  • Subject: Menus in a document based application
  • From: Colin Cornaby <email@hidden>
  • Date: Fri, 5 Aug 2005 11:50:31 -0700

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. Are there any good ways to do this other than setting up another class as an Application Controller, and then using notifications or something? That really seems like a long way around. I've tried making my controller an NSResponder but I don't know the event chain too well and it seems to have blown up in my face.

---------------------------
Colin Cornaby - http://gomac.blogspot.com/
Carpe Stellarem - Lead Programmer, ProToys - http://carpestellarem.com
Macintosh Specialist - University of Portland - htttp://up.edu

_______________________________________________
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: Menus in a document based application
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Intelligent date squishing
  • Next by Date: Re: Intelligent date squishing
  • Previous by thread: RE: objc and RDBMS
  • Next by thread: Re: Menus in a document based application
  • Index(es):
    • Date
    • Thread