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 protected])

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