Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting text caret location in screen coordinate



Dear List,

 

Does anybody here know how to get text caret location (x, y) in screen coordinate?

 

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.

 

Many thanks

 

- Chen

Bloorview Kids Rehab has a new home!  The services from the former MacMillan site have moved into our new state-of-the-art facility at 150 Kilgour Road in Toronto (Bayview and Eglinton). The services at our Bloorview site (Leslie and Sheppard) will move into the new facility in August. For more information visit our website at www.bloorviewmacmillan.on.ca.

Confidentiality Notice:  This e-mail, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient or this information has been inappropriately forwarded to you, please contact the sender by reply e-mail and destroy all copies of the original.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.