Hi, I want to highlight @mentions, #hashtags and links in an NSTextView as the user types. I've been thinking I'd implement this via the shouldChangeTextInRange delegate method.
My plan is as follows: I'm going to construct the new string (via stringByReplacingCharactersInRange:affectedCharRange withString:replacementString) and check the word (chain of chars separated by spaces on both ends) that's changed and highlight only this word. I'm a total cocoa newbie so I'm not sure, is this a good plan? Is there already code out there that does the stuff I want? Thanks, Martin _______________________________________________ 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]
