Re: Notification of autocomplete (in any app)
Re: Notification of autocomplete (in any app)
- Subject: Re: Notification of autocomplete (in any app)
- From: Joshua Garnham <email@hidden>
- Date: Mon, 08 Aug 2011 08:21:06 +0100
Thanks, that's just what I was looking for. I am now able to know exactly when autocorrect has taken place in the NSTextView in my app. However (if you don't mind me extending my question), what if I wanted to know when this happens in any NSTextView in the active app whether it's my app, TextEdit or Safari? Similar to the app here (http://pilotmoon.com/popclip/).
I'm not sure how exactly to go about this and the only thing I have thought of so far is becoming a service but I'm not sure it it's the right way to go about it and even so where I'd go from there.
Thanks again.
Josh
On Monday, 8 August 2011 at 08:02, Kyle Sluder wrote:
> On Sun, Aug 7, 2011 at 11:40 PM, Joshua Garnham
> <email@hidden (mailto:email@hidden)> wrote:
> >
> > Is there some notification that is posted or some other way to tell when in a NSTextView or any editable element that something has been autocorrected?
>
> -textView:didCheckTextInRange:types:options:results:orthography:wordCount:
>
> http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSTextViewDelegate_Protocol/Reference/Reference.html#//apple_ref/doc/uid/TP40008628-CH1-SW25
>
> --Kyle Sluder
_______________________________________________
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