• 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: Seth Willits <email@hidden>
  • Date: Sun, 10 Aug 2003 13:27:51 -0700

On Sunday, August 10, 2003, at 12:02 PM, Paul F. wrote:

I tried using the FirstResponder, but my custom view doesn't take keyboard input and besides the selector I wanted to call wasn't listed in the Inspector.

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.

Believe me, this isn't obvious and took me quite a while to figure out, and even then I had to ask the dumbest sounding question to do so. :)

Still quite the relative newbie myself,

Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames

"Organized people are just too lazy to look for things."
--
------------------------------------------------------------------------ ---
_______________________________________________
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: "Paul F." <email@hidden>
References: 
 >Question regarding menus and document based app. (From: "Paul F." <email@hidden>)

  • Prev by Date: Re: Setting focus to text field in drawer
  • Next by Date: Re: ImageInTableview
  • Previous by thread: Question regarding menus and document based app.
  • Next by thread: Re: Question regarding menus and document based app.
  • Index(es):
    • Date
    • Thread