Binding NSTreeController to NSArray
Binding NSTreeController to NSArray
- Subject: Binding NSTreeController to NSArray
- From: Caleb Cannon <email@hidden>
- Date: Fri, 16 Feb 2007 03:58:57 -0800
I'm binding the outline column of an NSOutlineView to an
NSTreeController. The tree controller is in turn bound to an NSArray
that I create using a fetch request.
What is the proper way to inform the tree controller that the
contentArray has been updated? I've tried using
[self willChangeValueForKey:@"filteredTitles"];
[self willDidChangeValueForKey:@"filteredTitles"];
in succession but it seems that the object count is not being updated
along with with content:
*** NSTimer discarding exception '*** -[NSCFArray objectAtIndex:]:
index (80) beyond bounds (80)' that raised during firing of timer
with target 146b930 and selector '_sendPartialString'
filteredTitles is a function in my app delegate that executes the
fetch request and returns an NSArray.
- (NSArray *)filteredTitles { ... }
Thanks,
Caleb
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden