• 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
How to override [NSTextField paste:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to override [NSTextField paste:]
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: More PDFView mysteries...
  • Next by Date: Re: Demo Version
  • Previous by thread: Re: More PDFView mysteries...
  • Next by thread: Re: How to override [NSTextField paste:]
  • Index(es):
    • Date
    • Thread