• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextField selection customization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTextField selection customization
      • From: vincent habchi <email@hidden>
References: 
 >NSTextField selection customization (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: Locating Frameworks
  • Next by Date: Re: Locating Frameworks
  • Previous by thread: NSTextField selection customization
  • Next by thread: Re: NSTextField selection customization
  • Index(es):
    • Date
    • Thread