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: Uli Kusterer <email@hidden>
- Date: Thu, 12 Mar 2015 16:17:48 +0100
On 12 Mar 2015, at 01:09, Mutlu Qwerty <email@hidden> wrote:
> self.nextResponder = super.nextResponder //insert self into the Responder chain
I think you mis-typed here. super nextResponder calls the superclass's implementation of -nextResponder, but it still just calls nextResponder with self being your object. So you're setting nextResponder to the value it already has. It's a no-op.
Did you perhaps mean self.superview.nextResponder?
-- Uli
http://stacksmith.org
_______________________________________________
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