Re: NSTreeController - please help, can't see the forest for the tree controller
Re: NSTreeController - please help, can't see the forest for the tree controller
- Subject: Re: NSTreeController - please help, can't see the forest for the tree controller
- From: SA Dev <email@hidden>
- Date: Tue, 21 Jun 2005 13:49:01 -0400
On Jun 21, 2005, at 1:35 PM, Keith Blount wrote:
I have been through the documentation (what there is
of it - I've filed an enhancement request) and know
that there is an arrangedObjects method, but I was
talking about the -arrangeObjects: method - this
method is present in NSArrayController but not in
NSTreeController, and it is this method that mmalc's
filtering controller overrrides. I did try overriding
-arrangedObjects instead, but it turns out that
NSTreeController's -arrangedObjects method doesn't
return an NSArray directly, but an object of private
class _NSControllerTreeProxy, so it's impossible (?)
to alter. (This seems to be the trouble all the way
through with NSTreeController - any time you want to
access anything, you run into proxy objects of
undocumented private classes in a manner unprecedented
anywhere else.)
My apologies. Reading your original post more closely, I see that
I'm probably not answering the question you're asking. I might be
missing something simple, but could you please provide more specific
details about what you're trying to accomplish? More to the point,
could you describe your model in a bit more detail?
As to the proxy objects, it's my understanding that
NSObjectController, NSArrayController, and NSTreeController all
return proxy objects. Use key-value coding to access their properties.
_______________________________________________
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