How to override [NSTextField paste:]
How to override [NSTextField paste:]
- Subject: How to override [NSTextField paste:]
- From: Graham Cox <email@hidden>
- Date: Fri, 15 Jun 2012 16:04:56 +1000
Is there a way to override the -paste: method of NSTextField, other than subclassing?
I have a situation where I want to handle paste for several related text entry fields at once. I have implemented -paste: in the controller for these, but of course it goes to first responder which is the text field itself (or its editor) which isn't what I want. Subclassing the field is an option, but because of the Field Editor, I'm not sure it's what is really needed.
--Graham
_______________________________________________
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