• 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
NSTextView paste:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView paste:


  • Subject: NSTextView paste:
  • From: ecir hana <email@hidden>
  • Date: Mon, 13 Aug 2012 19:54:14 +0200

Dear list,

I have a NSTextView, where the user can paste plain text into.

When the users has "foo" in the pasteboard I would like "bar" to be pasted.
In other words, a user goes to, say, a web browser, selects "foo", cmd+c,
switches to my NSTextView, cmd+v and "bar" appears at insertion point.

Please, does anyone know how to approach this?

I thought about subclassing "readSelectionFromPasteboard:type:" but what to
do then? Or is there better way of doing this?

Thanks in advance!
_______________________________________________

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: NSTextView paste:
      • From: Graham Cox <email@hidden>
    • Re: NSTextView paste:
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: __weak pointer collection firing prematurely???
  • Next by Date: Re: Classes incompatible with weak references
  • Previous by thread: Re: Classes incompatible with weak references
  • Next by thread: Re: NSTextView paste:
  • Index(es):
    • Date
    • Thread