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 (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com