you might be talking about an NSTextView which contains Tokens or a TokenField. Look up this in the Apple API and see if this offers the functionality you need. I would recommend using an NSMutableString to hold your data as the values are stored in a comma separated syntax.

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/TokenField_Guide/Introduction/Introduction.html%23//apple_ref/doc/uid/TP40006555

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSTokenField_Class/Reference/Reference.html%23//apple_ref/occ/cl/NSTokenField

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.