• 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: vincent habchi <email@hidden>
  • Date: Wed, 16 Jun 2010 08:17:20 +0200

Jens, Graham,

> Note that NSTextView has: - (void)setSelectionGranularity:(NSSelectionGranularity)granularity

Yes, I saw that, it's a nice method.

> which might be all you need - just set it to NSSelectByWord every time you change the selection. This will keep getting reset so something will need to keep forcing it back to 'word' selection, but it might be possible to do this in the delegate and not require a subclass.

Actually, I need a mix of both modes (I need to rub out keywords on a per-word basis, but let variables be corrected on a character granularity); so I won't be trivial, but far to be impossible.

Thanks to both,
Vincent_______________________________________________

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

References: 
 >NSTextField selection customization (From: vincent habchi <email@hidden>)
 >Re: NSTextField selection customization (From: Jens Alfke <email@hidden>)
 >Re: NSTextField selection customization (From: vincent habchi <email@hidden>)
 >Re: NSTextField selection customization (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSTextField selection customization
  • Next by Date: Re: Core Data : Managed Object Models : Configurations, Versions
  • Previous by thread: Re: NSTextField selection customization
  • Next by thread: Service without Icon or Window?
  • Index(es):
    • Date
    • Thread