Turning text tokens into single elements
Turning text tokens into single elements
- Subject: Turning text tokens into single elements
- From: Gideon King <email@hidden>
- Date: Wed, 19 May 2010 22:02:45 +1000
I'm looking for some sample code that shows how to take a token in a text view and represent it as a single graphical item - just like what xcode does when it does method completion, and it puts the arguments in a single blue capsule thing that is treated as one single character (only I wouldn't make it so you could double-click it and edit it).
I guess the reason I am having trouble finding it is because I'm not sure exactly how to best describe it, but hopefully someone will understand, and let me know if there is some applicable source code available.
I suppose I could achieve my desired aim by using text attachments, and create the images for the elements, but I'm wondering if there's a better way.
TIA
Gideon
_______________________________________________
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