NSTreeController - please help, can't see the forest for the tree controller
NSTreeController - please help, can't see the forest for the tree controller
- Subject: NSTreeController - please help, can't see the forest for the tree controller
- From: Keith Blount <email@hidden>
- Date: Tue, 21 Jun 2005 09:34:51 -0700 (PDT)
Hello,
I am beginning to think that NSTreeController is only
half-finished, but in a last, desperate attempt to
find anyone who might know how to resolve some of its
major issues, I hope no one minds me asking my
questions again here. (First, let me apologise posting
a message three times yesterday - this wasn't an
intentional spam, just a [human] problem with my
e-mail.)
1) Is there ANY way to filter an NSTreeController?
Mmalc's Filtering Controller example shows how to do
it for NSArrayController by overriding
-arrangeObjects:, but there is no equivalent method in
NSTreeController.
2) Failing that, which would be the ideal solution to
my problem (I think), this is what I want to do - I
would be grateful to anybody who could tell me where
to start: I have an NSTreeController that is supposed
to show folders in an NSOutlineView, and an
NSArrayController that is supposed to show the
contents of these folders in an NSTableView, much like
in Mail. The trouble is that in a separate view, I
want to set up an NSTreeController that will show both
folders AND contents in a single NSOutlineView. What
is the best way to set this up? Without filtering, it
seems impossible...
3) I have asked this a few times, so I am pretty sure
that no one knows the answer - in fact, I'm pretty
sure that NSTreeController screws this up so badly
that it's impossible - but... Is there *any* way to
get NSOutlineView's
-outlineView:persistentObjectForItem: and
-outlineView:itemForPersistentObject: datasource
methods when using an NSTreeController? Yes, I know
about the -observedObject private method which can get
the item for the former method, but there seems no way
to convert this back to an _NSArrayControllerTreeNode
object, which would be required to get these
datasource methods working. It seems silly that
NSTreeController renders these fundamental methods
useless.
All these problems suggest to me that I may have to
ditch bindings for my project altogether, but if
anyone has any suggestions, I would be ***really***
grateful.
Many thanks in advance,
Keith
P.S. Apologies for the awful pun in the title
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden