• 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
Re: Know when text is edited in any app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Know when text is edited in any app


  • Subject: Re: Know when text is edited in any app
  • From: Joshua Garnham <email@hidden>
  • Date: Tue, 09 Aug 2011 13:48:35 +0100

 I'm not so bothered about Safari/Mail, I just used Safari as an example of what I wanted to do. I'd rather focus on doing it with NSTextView as that is what the majority of text editing apps use.

I have - since I first asked the question - been using the Accessibility API's to find out information about a text view(s) in other apps, however my main target is to have access to the NSTextView's delegate methods specifically 'textView:didCheckTextInRange:types:options:results:orthography:wordCount:' to find out when auto-complete occurs.

Whether or not this next step is possible, I am not sure.

Josh


On Tuesday, 9 August 2011 at 13:40, Mike Abdullah wrote:

> Forget any notion of doing this for NSTextView I'd advise; Safari and Mail are based around WebViews.
>
> On 8 Aug 2011, at 19:47, Joshua Garnham wrote:
>
> >
> > I need to know when text is entered (or anything relating to a delegate method happens) in any NSTextView in the active app whether it's my app, TextEdit or Safari. Similar to this 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 if it's the right way to go about it and even so where I'd go from there.
> >
> >
> > Thanks.
> >
> >
> > Josh
> >
> >
> >
> > _______________________________________________
> >
> > Cocoa-dev mailing list (email@hidden (mailto: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 (http://lists.apple.com)
> >
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden (mailto:email@hidden)

_______________________________________________

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: Know when text is edited in any app
      • From: Mike Abdullah <email@hidden>
References: 
 >Know when text is edited in any app (From: Joshua Garnham <email@hidden>)
 >Re: Know when text is edited in any app (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Frameworks (ConnectionKit)
  • Next by Date: Re: Know when text is edited in any app
  • Previous by thread: Re: Know when text is edited in any app
  • Next by thread: Re: Know when text is edited in any app
  • Index(es):
    • Date
    • Thread