NSTreeController filter contents
NSTreeController filter contents
- Subject: NSTreeController filter contents
- From: "Michael Hanna" <email@hidden>
- Date: Mon, 23 Jun 2008 17:10:39 -0700
How do I filter-out the contents of an NSTreeController? I saw an
example with NSArrayController by overriding the [NSArrayController
-arrangeObjects] method, but NSTreeController doesn't have this
method.
So if a non-leaf or leaf node has a certain attributes set, like
-isEnabled, I'd like to simply not have the NSTreeController display
the node(and it's children).
I want to avoid putting view information in my model, so that is why I
need to use a filter. 10.4 or higher is my requirement.
best regards,
Michael
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden