• 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: First Responder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First Responder


  • Subject: Re: First Responder
  • From: koko <email@hidden>
  • Date: Fri, 25 Feb 2011 23:05:19 -0700

The object is a subclass of NSResponder with overridden acceptsFirstResponder to return yes.

-koko


On Feb 25, 2011, at 10:59 PM, Kyle Sluder wrote:

> On Feb 25, 2011, at 9:31 PM, koko <email@hidden> wrote:
>
>> I connect a menu item to an action in first responder. The action is defined in a .h and .m in the project
>>
>> In applicationDidFinishLaunching I alloc, init and retain an object that contains the action connected to the menu item in first responder.
>>
>> At run time the menu item is not enabled.  I don't get it.
>
> Is the object in the responder chain at all? The menu item can't magically know about the object; it needs to look through the responder chain to find it.
>
> --Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: First Responder
      • From: Graham Cox <email@hidden>
References: 
 >First Responder (From: koko <email@hidden>)
 >Re: First Responder (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: First Responder
  • Next by Date: Re: First Responder
  • Previous by thread: Re: First Responder
  • Next by thread: Re: First Responder
  • Index(es):
    • Date
    • Thread