You are right. I should be changing the way the NSTextField looks like
On 06 Mar 2014, at 19:59, Quincey Morris <[email protected]> wrote: > On Mar 6, 2014, at 11:46 , Kyle Sluder <[email protected]> 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 protected]) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/daniel.dlds%40gmail.com > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
