I've got two NSTokenFields. One is read-only as a palette for dragging and 
dropping to the other. I've implemented a "Token" class to distinguish between 
tokens and plain text (NSString). I can pass in arrays of mixed Tokens and 
NSStrings, and it all displays correctly in both fields.

However, when I drag a token ("Token") from the palette to the field, it 
arrives as a string and not a token. I read somewhere you need to implement - 
(void)encodeWithCoder:(NSCoder *)encoder and - (id)initWithCoder:(NSCoder 
*)decoder on your Token, which I did, but they don't seem to get called.

Has anyone got any tips or example code?





      
_______________________________________________

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