• 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: Getting text caret location in screen coordinate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting text caret location in screen coordinate


  • Subject: Re: Getting text caret location in screen coordinate
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 12 Apr 2006 09:02:46 -0700


On Apr 11, 2006, at 8:53 PM, Chen Wang wrote:

I'm trying to make a small window that is able to dynamically follow the text caret (the little "I" shaped cursor) while typing. In most cases, the text caret is owned by other application. Therefore, I'm looking for a solution which is able to tell where (x, y) is the text caret system wide. After spending hours on searching, it seems to me that there is no straight-forward way to do it (like locating the mouse cursor by using GetGlobalMouse() or [NSEvent mouseLocation]). Any suggestion or point to right docs will be highly appreciated.


This is the sort of thing that an input method would do; try looking at the documentation for input methods, e.g. the TSM reference material. There probably are examples available too.


The alternative would be to use the accessibility APIs.

Douglas Davidson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Getting text caret location in screen coordinate (From: "Chen Wang" <email@hidden>)

  • Prev by Date: Re: Sorting a table using multiple sort descriptors while using bindings...
  • Next by Date: Re: Function definitions
  • Previous by thread: Re: Getting text caret location in screen coordinate
  • Next by thread: RE: Getting text caret location in screen coordinate
  • Index(es):
    • Date
    • Thread