Re: NSArrayController nib binding vs code binding

2011-07-19 Thread Mike Abdullah
On 19 Jul 2011, at 02:41, Trygve Inda wrote: [myArrayController bind:@content toObject:myClassObject withKeyPath:@places options:NULL]; Hmm... Seems like it should be bind:@contentArray Please use the NSContentArrayBinding constant as that's what's it exists for, despite being fairly

Re: NSArrayController nib binding vs code binding

2011-07-19 Thread Trygve Inda
On 19 Jul 2011, at 02:41, Trygve Inda wrote: [myArrayController bind:@content toObject:myClassObject withKeyPath:@places options:NULL]; Hmm... Seems like it should be bind:@contentArray Please use the NSContentArrayBinding constant as that's what's it exists for, despite being fairly

NSArrayController nib binding vs code binding

2011-07-18 Thread Trygve Inda
I have a class (MyClass) that conforms to the collection methods for mutable collections such as... -(void)insertKey:(NSArray *)locationArray atIndexes:(NSIndexSet *)indexes In my nib I have an NSArrayController and an instance of MyClass My binding for the NSArrayController content looks

Re: NSArrayController nib binding vs code binding

2011-07-18 Thread Trygve Inda
I have a class (MyClass) that conforms to the collection methods for mutable collections such as... -(void)insertKey:(NSArray *)locationArray atIndexes:(NSIndexSet *)indexes In my nib I have an NSArrayController and an instance of MyClass My binding for the NSArrayController content

Re: NSArrayController nib binding vs code binding

2011-07-18 Thread Quincey Morris
On Jul 18, 2011, at 18:41, Trygve Inda wrote: The other possibly related issue is that I have my table delegate defined in the nib and seem to get -(void)tableViewSelectionDidChange:(NSNotification *)aNotification Before awakeFromNib which means my binding has not taken place yet. Do I

Re: NSArrayController nib binding vs code binding

2011-07-18 Thread Trygve Inda
On Jul 18, 2011, at 18:41, Trygve Inda wrote: The other possibly related issue is that I have my table delegate defined in the nib and seem to get -(void)tableViewSelectionDidChange:(NSNotification *)aNotification Before awakeFromNib which means my binding has not taken place yet. Do I

Re: NSArrayController nib binding vs code binding

2011-07-18 Thread Kyle Sluder
2011/7/18 Trygve Inda cocoa...@xericdesign.com: I have a class (MyClass) that conforms to the collection methods for mutable collections such as... -(void)insertKey:(NSArray *)locationArray atIndexes:(NSIndexSet *)indexes What happens if instead of implementing the collection methods, you

Re: NSArrayController nib binding vs code binding

2011-07-18 Thread Quincey Morris
On Jul 18, 2011, at 19:13, Trygve Inda wrote: Where am I not KVO compliant? I can't answer exactly, because you didn't provide enough information. So let me provide an example. Let's assume the array controller was bound to an array property of an object in the nib of class MyClass, and you