After some research, NSTreeController does not support predicates. subclass'ing looks like the way to go. I'll look into to-many properties as well.
Thanks so much! -tony On Mar 30, 2010, at 8:51 PM, Kyle Sluder wrote: > On Tue, Mar 30, 2010 at 8:35 PM, Tony Romano <[email protected]> wrote: >> One obvious method(albeit brute force) is to rebuild the tree controller >> list and redisplay it. For what I want to do, this is way too expensive of >> an operation. In addition, the user can toggle back and forth the >> preference. There doesn't seem to be an obvious way to tell the outline >> controller, "skip or hide this item". > > See -[NSArrayController filterPredicate]. > > If that doesn't suit your needs, subclass NSArrayController and do > your filtering in -arrangeObjects. If *that* doesn't suit your needs, > bind your array controller to a to-many property you control and do > your filtering there. > > --Kyle Sluder > -tony _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
