Re: Text field with buttons like the To field in Mail
Re: Text field with buttons like the To field in Mail
- Subject: Re: Text field with buttons like the To field in Mail
- From: Quincey Morris <email@hidden>
- Date: Wed, 14 Jan 2009 20:02:17 -0800
On Jan 14, 2009, at 08:30, Sergey Kuleshov wrote:
I am very new to cocoa development and just making my first steps.
What I am trying to do is something like a To field in Mail.app which
provides autocomplete and once matched replaces the text with the
button.
After hours of googling it looks like I have to put NSButtonCell
inside NSTextView (or NSTextField?) however, I can't understand how do
it though it should be fairly common as I see same kind of behavior in
many applications! (especially for list of tags) Maybe there is a
ready made component?
See:
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTokenField_Class/Reference/Reference.html
The first sentence of this reads:
NSTokenField is a subclass of NSTextField that provides tokenized
editing similar to the address field in the Mail application.
I have a feeling that's probably what you're looking for. ;)
_______________________________________________
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