Re: Cocoa custom text field backspace handling
Re: Cocoa custom text field backspace handling
- Subject: Re: Cocoa custom text field backspace handling
- From: Kyle Sluder <email@hidden>
- Date: Thu, 06 Mar 2014 11:46:39 -0800
On Thu, Mar 6, 2014, at 10:30 AM, Daniel Luis dos Santos wrote:
> I am developing a custom textfield in Cocoa. To handle the backspace
> character I should be defining :
Hold up. It's fairly very rare to subclass NSTextView and do custom
processing there. Why do you feel the need to do this?
Cocoa already has a delegation mechanism for customizing the behavior of
certain keys. Look up -doCommandBySelector: and
-control:textView:doCommandBySelector:.
--Kyle Sluder
_______________________________________________
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