Re: NSArrayController bound to an array of strings

2008-11-17 Thread Scott Anguish
there are workarounds to do this, but the basic answer is that it isn't intended to be used with a simple array of strings. You can make a class that holds the simple string object, or perhaps use an NSDictionary with a specific key. On 16-Nov-08, at 12:45 PM, Meik Schuetz wrote: Dear all

Re: NSArrayController bound to an array of strings

2008-11-16 Thread Andy Lee
On Nov 16, 2008, at 1:45 PM, Chris Suter wrote: The only trick I can think of is to use "string" as the model key and then, because NSString doesn't have a "string" method, you need to add a category method to NSString: - (NSString *)string { return self; } I don't know bindings, but it might

Re: NSArrayController bound to an array of strings

2008-11-16 Thread Chris Suter
On Mon, Nov 17, 2008 at 4:45 AM, Meik Schuetz <[EMAIL PROTECTED]> wrote: > Dear all, > If have seen lots of examples in which a NSTableView is bound to an > NSArrayController which is bound to an array of entity objects, having > various properties. However I am now trying to bind a table column to

NSArrayController bound to an array of strings

2008-11-16 Thread Meik Schuetz
Dear all, If have seen lots of examples in which a NSTableView is bound to an NSArrayController which is bound to an array of entity objects, having various properties. However I am now trying to bind a table column to an array of strings and I don't seem to get this working. The string co