How would I use a search box to filter a NSOutlineView/NSTreeController? I know it would have something to do with bindings and a predicate. But not specificaly how to. Could someone take me through the steps of filtering an NSOutlineView/NSTreeController?
+3
A:
I don't think you can. NSArrayController allows you to give it a filter predicate; NSTreeController doesn't. I suggest you file a bug.
Peter Hosey
2009-07-25 15:22:10
Could I filter the NSArrayController the NSTreeController is connected to, but would it display the results in the NSOutlineView?
Joshua
2009-07-25 15:39:33
Just tried to file a bug but I just get an error when I log in, shows how good apples bug reporter is. http://snapplr.com/q3ns
Joshua
2009-07-25 15:40:37
My guess is that filtering the array controller would only filter the root objects, not any descendant objects. I haven't tried it, but I can't see how it could work.
Peter Hosey
2009-07-25 15:59:55
As for the bug reporter: Do you have an ADC account? You need one.
Peter Hosey
2009-07-25 16:00:31
It works but only with the root objects is there any way to expand it to search the decendant objects?
Joshua
2009-07-25 17:36:17
Yes, i do have an ADC account.
Joshua
2009-07-26 09:54:10
So, Is there any way to make it search the decendant objects?
Joshua
2009-07-27 07:06:43
Pretty sure I answered that already.
Peter Hosey
2009-07-27 14:41:01
SO THERE IS NO WAY AT ALL TO FILTER THE DESCENDANT OBJECTS?
Joshua
2009-07-27 17:41:12