Problem with NSArrayController and passing data to an NSTableColumn
Problem with NSArrayController and passing data to an NSTableColumn
- Subject: Problem with NSArrayController and passing data to an NSTableColumn
- From: Christoffer Lerno <email@hidden>
- Date: Mon, 22 Mar 2004 15:53:04 +0800
I hooked up a NSArrayController to a class with a method passing an
NSMutableArray through the normal accessor method (valueForKey), in the
belief that my NSTableColumn would magically would display the data as
multiple rows.
The class connected to NSArrayController has this method:
public NSMutableArray valueForKey(String dummy)
{
return new NSMutableArray(new String[]{"Sune","Arne"});
}
My NSArrayController has an outlet connected to the class with the
method mentioned above.
My NSTableColumn uses the controller key arrangedObjects to connect
with the NSArrayController
However, the result is 1 row with the whole content of the array, like
this: (Sune, Arne).
Obviously I'm doing something wrong here. Any pointers or examples
other than ControllerPlay example which seems to do this in a quite
different way.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.