• 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: Question regarding menus and document based app.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question regarding menus and document based app.


  • Subject: Re: Question regarding menus and document based app.
  • From: "Paul F." <email@hidden>
  • Date: Sun, 10 Aug 2003 20:22:51 -0400

Thanks. I guess intuitively it seemed that the first responder was the best way, but the documentation always talked about keyboard events and then there was the issue of the selector not showing up.

FWI understand that's how you should do it (using the first responder). What you need to do is select First Responder in the *classes* tab in the nib, and add your action to the class using the Inspector. Then you can connect the menu to the first responder. Your view needn't be able to take keyboard input, but simply a subclass of NSResponder (which views are) and implement the selector.

Paul
--
Paul Franceus |
RABA Technologies | All Your Base are Belong to us.
email@hidden |
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Question regarding menus and document based app.
      • From: Seth Willits <email@hidden>
References: 
 >Re: Question regarding menus and document based app. (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Accessing System Preferences?
  • Next by Date: Re: Accessing System Preferences?
  • Previous by thread: Re: Question regarding menus and document based app.
  • Next by thread: Re: Question regarding menus and document based app.
  • Index(es):
    • Date
    • Thread