Re: Swift Keypress KeyDown NSResponder input function needed.
Re: Swift Keypress KeyDown NSResponder input function needed.
- Subject: Re: Swift Keypress KeyDown NSResponder input function needed.
- From: email@hidden
- Date: Thu, 12 Mar 2015 10:28:24 +0900
I thought Yosemite view controllers put themselves in the responder chain properly now...
Sent from my iPhone
> On 2015/03/12, at 9:20, Jens Alfke <email@hidden> wrote:
>
>
>> On Mar 11, 2015, at 5:09 PM, Mutlu Qwerty <email@hidden> wrote:
>>
>> self.nextResponder = super.nextResponder //insert self into the Responder chain
>
> That just sets the object's nextResponder property; it doesn’t insert the object into the responder chain. I think you want to set the _view’s_ nextResponder to self, also. (But check the Apple docs; they must cover this situation. It’s been a long time since I’ve done it.)
>
> ―Jens
> _______________________________________________
>
> 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
_______________________________________________
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