Re: Turning text tokens into single elements
Re: Turning text tokens into single elements
- Subject: Re: Turning text tokens into single elements
- From: Jonathan del Strother <email@hidden>
- Date: Wed, 19 May 2010 13:31:09 +0100
On 19 May 2010 13:02, Gideon King <email@hidden> wrote:
> 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.
>
Try NSTokenField ?
_______________________________________________
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