When I use [NSTextView insertText:@"Lyrics Code Here"];, it doesn't delete the current text so that is it is replaced for the user...

Why would you believe "insert" means anything but? If you read the documentation on the text system, you'll get a better idea of where to look for more answers.

You can ask the text view for its NSTextStorage (which is a subclass of NSMutableAttributedString) and replace the contents with - replaceCharactersInRange:withString: or - replaceCharactersInRange:withAttributedString:

--
I.S.


_______________________________________________

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]

Reply via email to