On Jul 4, 2008, at 6:01 AM, Paul Hoadley wrote:

The default behaviour of an NSTextField is apparently to select its contents on gaining focus. Is there any way to avoid this, and, say, put the cursor at the end of any content instead?


You should be able to set a delegate and use controlTextDidBeginEditing: Then, obtain the field editor and set the selection and cursor position as needed. See docs on that API for details.

___________________________________________________________
Ricky A. Sharp         mailto:[EMAIL PROTECTED]
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to