Skip navigation.
 
mlRe: NSTreeController problems
FROM : Charles Srstka
DATE : Sun May 18 22:57:35 2008

Thanks, that looks very useful. I only have one trepidation about it, 
which concerns this:

On May 18, 2008, at 3:33 PM, Jonathan Dann wrote:
> - (NSArray *)rootNodes;
> {
>     return [[self arrangedObjects] childNodes];
> }


Isn't -arrangedObjects one of those methods you're never supposed to 
call manually, only through bindings? At least, that seems to be the 
vibe I picked up while searching the list before posting my question. 
The docs say this:

> Returns an proxy root tree node for the containing the receiver’s 
> sorted content objects.
>
> ...
>


> Prior to Mac OS X v10.5 this method returned an opaque root node 
> representing all the currently displayed objects. This method should 
> be used for binding, no assumption should be made about what methods 
> this object supports.



which of course is nice and ambiguous. It says no assumption should be 
made, but says that in a paragraph prefixed by "Prior to Mac OS X 
v10.5". Since the root note was opaque and unreliable as to format 
prior to OS X v10.5, does that mean that it *can* be reliably used now 
that it is defined as an (sic) proxy root tree node for the (sic) 
containing the receiver's sorted content objects, or does that still 
apply?

Thanks,
Charles_______________________________________________

Cocoa-dev mailing list (<email_removed>)

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:
http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>

This email sent to <email_removed>

Related mailsAuthorDate
mlNSTreeController problems Charles Srstka May 18, 21:57
mlRe: NSTreeController problems Jonathan Dann May 18, 22:33
mlRe: NSTreeController problems Charles Srstka May 18, 22:57
mlRe: NSTreeController problems Jonathan Dann May 19, 00:47
mlRe: NSTreeController problems Charles Srstka May 19, 00:57
mlRe: NSTreeController problems Jonathan Dann May 19, 01:44
mlRe: NSTreeController problems Charles Srstka May 19, 01:51