• 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: Cocoa custom text field backspace handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa custom text field backspace handling


  • Subject: Re: Cocoa custom text field backspace handling
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 06 Mar 2014 11:59:04 -0800

On Mar 6, 2014, at 11:46 , Kyle Sluder <email@hidden> wrote:

> Hold up.

Aside from the objections you and Mike raised, there’s actually quite a lot more to be alarmed about in the OP’s code:

1. It overrides keyUp instead of keyDown. ‘interpretKeyEvents:’ probably isn’t even legal in keyUp (which may be why it’s beeping).

2. It (apparently) fails to account for the fact that ‘interpretKeyEvents:’ will eventually invoke ‘insertText:’ if the keystroke isn’t an editing function, so an unconditional ‘appendString:’ is likely duplicative.

3. It’s not even remotely clear whether the OP is trying to suppress the delete, re-implement the standard delete behavior, or some odd combination of both.

_______________________________________________

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: Cocoa custom text field backspace handling
      • From: Daniel Santos <email@hidden>
References: 
 >Cocoa custom text field backspace handling (From: Daniel Luis dos Santos <email@hidden>)
 >Re: Cocoa custom text field backspace handling (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Cocoa custom text field backspace handling
  • Next by Date: Re: Class name as NSString and problem with NSLog?
  • Previous by thread: Re: Cocoa custom text field backspace handling
  • Next by thread: Re: Cocoa custom text field backspace handling
  • Index(es):
    • Date
    • Thread