• 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
Censoring pasted text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Censoring pasted text


  • Subject: Censoring pasted text
  • From: ecir hana <email@hidden>
  • Date: Fri, 25 May 2012 09:09:32 +0200

Hello,

if I paste some text from clipboard into a textview, is there a way to
replace all the occurrences of "foo" by "bar"? If possible, I don't want to
use "textStorageDidProcessEditing:" as it is called every time I type in
something. To put it in other words, is there perhaps an event which is
fired when I paste in something? Is it possible to differentiate between
text change coming from typing or pasting?

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: Censoring pasted text
      • From: ecir hana <email@hidden>
  • Prev by Date: Sending a list of path strings to the Finder via Scripting Bridge
  • Next by Date: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • Previous by thread: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • Next by thread: Re: Censoring pasted text
  • Index(es):
    • Date
    • Thread