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
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
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,
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,