On Mar 6, 2014, at 2:46 PM, Kyle Sluder <k...@ksluder.com> wrote: > 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:.
I concur. Cocoa is very much against re-inventing the wheel. Why can’t you use the system-provided class and everything that comes with it? > > --Kyle Sluder > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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/sevenbitstech%40gmail.com > > This email sent to sevenbitst...@gmail.com
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com