Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeController / NSOutlineView vs. sorting



Funny thing. I added the following method to my node entity:

- (NSSet *) children
{
    NSSet * tmpValue;

    [self willAccessValueForKey: @"children"];
    tmpValue = [self primitiveValueForKey: @"children"];
    [self didAccessValueForKey: @"children"];

    return tmpValue;
}

Similarly , I added the following to the leaf class:

- (NSSet *) children
{
    return nil;
}

And now, sorting works just fine.

Happy, but puzzled

Thanks for replying, Timothy.

Pierre

On Aug 31, 2005, at 1:13 PM, Timothy Larkin wrote:


On Aug 30, 2005, at 5:30 PM, Pierre Bernard wrote:


Anyone managed to get a sorted outline view, preferably using bindings?



I have, but I don't think I can shed any light on your problem, since you appear to have tried, without success, the solution that works in my application. The tree controller is bound to sortDescriptors, and the NSTableColumn of the outline view has its value bound to the controller's arranged objects.


Tim Larkin
Abstract Tools
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSTreeController / NSOutlineView vs. sorting (From: Pierre Bernard <email@hidden>)
 >Re: NSTreeController / NSOutlineView vs. sorting (From: Timothy Larkin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.