On 2013-05-26 12:02:03 -0600 Eric Wasylishen <[email protected]>
wrote:
Sounds like a cool project! The I beam is called the "insertion
point" in
NSTextView. You can get the character index of it using
[self selectedRange]
inside NSTextView. The I-beam is only present if length == 0 and
location !=
NSNotFound.
To get the (x,y) coordinates for positioning the popup window, you
can use
-firstRectForCharacterRange:. (NSTextInput protocol). Note that
apple's docs
say this returns a result in screen coordinates, but our NSTextView's
implementation doesn't seem to do that.
Thanks. I will check this.
Eric
_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev