I have an NSTableView and an NSTokenField in a window. I have implemented the following delegate methods:
tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem:
tokenField:representedObjectForEditingString:
tokenField:displayStringForRepresentedObject:
I want to make it so that when a row is selected in it, the NSTokenField gets populated with the tags that are contained in an NSMutableSet of the row object. How do I populate an NSTokenField with tokens if I have a container of the objects that they represent (and therefore the strings that need to be made into tokens)?