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 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