Re: NSTextField selection customization
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