Re: Censoring pasted text
Re: Censoring pasted text
- Subject: Re: Censoring pasted text
- From: ecir hana <email@hidden>
- Date: Fri, 25 May 2012 10:19:53 +0200
Oh, sorry for the noise. It's in the NSTextView docs, section "Managing the
Pasteboard".
On Fri, May 25, 2012 at 9:09 AM, ecir hana <email@hidden> wrote:
> 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