Re: Binding NSTableView to NSSet

2012-07-16 Thread Koen van der Drift
>> A follow up question: how do I now sort the data in the table? I am showing >> three values in the table, and like to sort based on either one of them. The >> original data is in an unordered NSSet (from my CD model). I could create an >> NSArray in my view controller: NSArray *myArray = [myT

Re: Binding NSTableView to NSSet

2012-07-15 Thread Willeke
Op 14 jul 2012, om 04:46 heeft Koen van der Drift het volgende geschreven: > A follow up question: how do I now sort the data in the table? I am showing > three values in the table, and like to sort based on either one of them. The > original data is in an unordered NSSet (from my CD model). I c

Re: Binding NSTableView to NSSet

2012-07-13 Thread Koen van der Drift
A follow up question: how do I now sort the data in the table? I am showing three values in the table, and like to sort based on either one of them. The original data is in an unordered NSSet (from my CD model). I could create an NSArray in my view controller: NSArray *myArray = [myTagsSet allOb

Re: Binding NSTableView to NSSet

2012-07-04 Thread Koen van der Drift
Ok, I found the solution. I added an NSArrayController to the nib, of which I bound the content set to the NSSet of my model. Then I bound the NSTableView to the NSArrayController, and the views to the various attributes through the objectVAlue. - Koen. On Jul 4, 2012, at 1:46 PM, Koen van d

Binding NSTableView to NSSet

2012-07-04 Thread Koen van der Drift
Hi, I am trying to hookup a view based NSTableView to my CoreData model using bindings. The table should display various attributes of the entity 'Tags', which has a many-to-one relationship with my main entity. In my code I can see that the Tags entities are valid using NSLog statements, howe