• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTreeController - please help, can't see the forest for the tree controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSTreeController - please help, can't see the forest for the tree controller
      • From: Keith Blount <email@hidden>
References: 
 >Re: NSTreeController - please help, can't see the forest for the tree controller (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: Correct way to force kill a thread.
  • Next by Date: How to set a default row in NSTableView?
  • Previous by thread: Re: NSTreeController - please help, can't see the forest for the tree controller
  • Next by thread: Re: NSTreeController - please help, can't see the forest for the tree controller
  • Index(es):
    • Date
    • Thread