NSMatrix binding and selections
NSMatrix binding and selections
- Subject: NSMatrix binding and selections
- From: Byron Wright <email@hidden>
- Date: Wed, 10 Nov 2004 11:03:23 -0800
I am programmatically creating and binding a subclass of an NSMatrix
view to an NSArrayController. I noticed that when I select cells the
array controllers selection is not getting updated. What am I doing
wrong?
here is the code I am using to create the binding.
- (void) buildThumbView
{
//CFCThumbView is a subclass of NSMatrix
_thumbGrid = [[CFCThumbView alloc] initWithFrame:[[_resultsView
superview] frame]];
[_thumbGrid setDelegate:self];
NSMutableDictionary *bindingOptions = [NSMutableDictionary dictionary];
[bindingOptions setObject:[NSNumber numberWithBool:YES]
forKey:@"NSInsertsNullPlaceholder"];
[bindingOptions setObject:[NSNumber numberWithBool:YES]
forKey:@"NSRaisesForNotApplicableKeys"];
[_thumbGrid bind:@"content" toObject: self
withKeyPath:@"arrangedObjects" options:bindingOptions];
}
Thanks in advance,
Byron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden