Re: Using a Core Data relationship binded to an NSTokenField

2008-06-15 Thread Orestis Markou
Hi, after some experimentation, I have this Obj-C class that tries to do the minimal thing: @implementation OMSetToArrayValueTransformerOBJC + (Class) transformedValueClass { return [NSMutableArray class]; } + (BOOL) allowsReverseTransformation { return YES; } - (id) transformedVal

Re: Using a Core Data relationship binded to an NSTokenField

2008-06-11 Thread Orestis Markou
No, I don't see anything in the console. I've seen lots of old posts to this list that NSTokenFieldCell doesn't behave correctly in an NSTableView, but I'm not sure if this has been fixed. Is there any sample code that demonstrates an NSTokenFieldCell in an NSTableView bounded to something (I don'

Re: Using a Core Data relationship binded to an NSTokenField

2008-06-09 Thread Charles Srstka
On Jun 9, 2008, at 4:08 AM, Orestis Markou wrote: If I have allowReverseTransformedValue set to YES, then double clicking the row will not show the NSTokenField. The reverseTransformedValue isn't called at all. Do any exceptions or other errors get logged to the console? Charles _

Re: Using a Core Data relationship binded to an NSTokenField

2008-06-09 Thread Orestis Markou
Thanks for the reply. I'm not on my Mac now, and the code is a bit messy because of all the experiments, but here are my assumptions: My value transformer returns an instance of NSMutableArray, that becomes the value of the NSTokenField Its transormedValue: takes an NSSet (actually it's a collecti

Re: Using a Core Data relationship binded to an NSTokenField

2008-06-08 Thread William Turner
On Jun 8, 2008, at 2:53 PM, Orestis Markou wrote: I have a list of articles, binded to an NSArrayController binded to an NSTableView. Each article can have multiple authors, which I want to display in one row, using an NSTokenField. It seems like the NSTokenField expects an NSArray, and it

Using a Core Data relationship binded to an NSTokenField

2008-06-08 Thread Orestis Markou
Hello, I've been looking everywhere to find a solution to this: I have a list of articles, binded to an NSArrayController binded to an NSTableView. Each article can have multiple authors, which I want to display in one row, using an NSTokenField. It seems like the NSTokenField expects an