Re: First Responder
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