Re: NSTextField selection customization
Re: NSTextField selection customization
- Subject: Re: NSTextField selection customization
- From: Jens Alfke <email@hidden>
- Date: Tue, 15 Jun 2010 12:58:29 -0700
On Jun 15, 2010, at 12:48 PM, vincent habchi wrote:
> I'd like to customize the way an NSTextField works, especially the selection mechanism (I'd would like the selection to break only at word boundaries, instead of at every character). Is this possible, or shall I turn to the bigger and bulkier NSTextView?
You’ll end up working with NSTextView regardless. NSTextField doesn’t do its own text editing, it overlays a text view called the ‘field editor’ that’s used by all controls in the window. So to make this work in a text field you’d need to create a tricked-out text view and then install it as a custom field editor on that text field.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden