Re: Position of the selection cursor in an NSTextField
Re: Position of the selection cursor in an NSTextField
- Subject: Re: Position of the selection cursor in an NSTextField
- From: Scott Little <email@hidden>
- Date: Mon, 23 Feb 2004 18:40:22 +0100
David,
try [[myWindow fieldEditor: forObject:myTextField]
selectedRange].location
Although this method (selectedRange) exists for the actual field
itself, I beleive that you need to use the actual field editor (of
which there is only one per active window).
At least this is how I understand it :-)
Scott
Quick to judge, quick to anger
Slow to understand - Neil Peart, Rush
Ignorance, and prejudice "Witch Hunt"
and fear walk hand in hand
--
scott little
email@hidden
On 23 Feb, 2004, at 18:04, David Dauer wrote:
Hello
How can I find out the position of the selection cursor in an
NSTextField?
Thanks for any hint
David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.