• 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: Swift Keypress KeyDown NSResponder input function needed.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Swift Keypress KeyDown NSResponder input function needed.
      • From: Uli Kusterer <email@hidden>
References: 
 >Swift Keypress KeyDown NSResponder input function needed. (From: Mutlu Qwerty <email@hidden>)

  • Prev by Date: NSSharedWorkspace Notification Question
  • Next by Date: Re: Cocoa GUI app getting slower on MacPro or MacMini when disconnecting all screens
  • Previous by thread: Re: Swift Keypress KeyDown NSResponder input function needed.
  • Next by thread: Re: Swift Keypress KeyDown NSResponder input function needed.
  • Index(es):
    • Date
    • Thread