Re: setFetchPredicate binding question
Re: setFetchPredicate binding question
- Subject: Re: setFetchPredicate binding question
- From: Scott Stevenson <email@hidden>
- Date: Sun, 10 Dec 2006 04:08:11 -0800
On Dec 9, 2006, at 8:03 PM, Demitri Muna wrote:
Assume I have the selection as an instance called displayedVolume
(it's done this way since the detail view is in its own nib to be
reused). In my setSelectedObject: method, I have this:
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"parent
== nil AND volume.volumeName == %@",
[displayedVolume valueForKeyPath:@"volumeName"]];
[rootObjectsController setFetchPredicate:predicate];
I don't think you need the array controller at all if you're just
binding the tree controller to the array controller's
arrangedObjects. Unless I misread your description, I think you could
skip that step and use the tree controller directly.
It would help to have a stack trace. A simplified project which
highlights the example would be even better.
(Best email address ever.)
- Scott
_______________________________________________
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