Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

BollywooD

macrumors 6502
Original poster
Apr 27, 2005
374
47
Hamburg
Im having a little trouble getting this to work.

Are there any good tutorials online that deal with this king of relationship?
:confused:
 
A good resource would probably be the NSTokenField Programming Guide.
I haven't used token fields before, but as far as I know it's a subclass of NSTextField and the bindings offered in interface builder look fairly alike, so you probably want to bind the token fields value to a string or number, not an array. If you want to get the different strings, you can use NSStrings componentsSeparatedByCharactersInSet: to get the different parts. You can get the tokenizing character set with NSTokenFields tokenizingCharacterSet method. You might have to make some changes to what I wrote since I didn't test this or ever used NSTokenField, so I don't know how good it works.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.