NSTokenField drag and drop

2008-10-31 Thread Chris Idou
I uploaded a mini project here: http://idisk.mac.com/chris.bitmead-Public?view=web Can anyone tell me why writeRepresentedObjects isn't called on the TokenDelegate when you drag a token from one field to the other? ___ Cocoa-dev mailing list

Re: NSTokenField Drag and Drop

2008-09-29 Thread Nick Zitzmann
On Sep 28, 2008, at 6:57 PM, Chris Idou wrote: However, when I drag a token ("Token") from the palette to the field, it arrives as a string and not a token. tokenField:(NSTokenField *)tokenField styleForRepresentedObject:(id)representedObject gets called with a NSString and not a "Token" c

NSTokenField Drag and Drop

2008-09-28 Thread Chris Idou
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,

NSTokenField drag and drop

2008-08-12 Thread Chris Idou
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,