Re: First Responder
Re: First Responder
- Subject: Re: First Responder
- From: koko <email@hidden>
- Date: Sat, 26 Feb 2011 00:19:24 -0700
Penchant is a great word. Did you know that the average vocabulary is less that 200 words? And I be penchant is not in that set.
I guess I should rethink my design although I got around things by getting a pointer the Menu Item and then setting its target to be my object. I just thought this is a few steps too many
1. define an outlet - one line of code
2. connect the outlet - one IB action
3. set the target on the outlet - one more line of code
Seems like a lot. But if my action was in a view in the view hierarchy all is well with just an IB connection.
Comments ?
-koko
On Feb 26, 2011, at 12:03 AM, Kyle Sluder wrote:
> On Fri, Feb 25, 2011 at 10:18 PM, koko <email@hidden> wrote:
>> Really! So just do
>>
>> [window makeFirstResponder:object]:
>>
>> Wow. too much work.
>>
>> [object makeFirstResponder}
>
> NO!
>
> You have this penchant for not reading documentation.
> http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.html#//apple_ref/doc/uid/10000060i-CH3-SW2
>
> --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