I have a class (MyClass) that conforms to the collection methods for mutable collections such as...
-(void)insert<Key>:(NSArray *)locationArray atIndexes:(NSIndexSet *)indexes In my nib I have an NSArrayController and an instance of MyClass My binding for the NSArrayController content looks like: Bind to: MyClassObject Model Key Path: places MyClass maintains an NSMutableArray and feeds objects as required with methods like -(void)insertPlaces:(NSArray *)locationArray atIndexes:(NSIndexSet *)indexes It all works fine. Then I tried removing the MyClass from the nib and creating it in code. So I create a MyClass object and then call [myArrayController bind:@"content" toObject:myClassObject withKeyPath:@"places" options:NULL]; The array objects show up fine in an NSTable but I have a "-" button bound to canRemove and somehow canRemove is always false now. Also, when I insert items, the table does not refresh immediately as it did when it was all nib based. Any ideas? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com