Re: NSTreeController / NSOutlineView vs. sorting
Re: NSTreeController / NSOutlineView vs. sorting
- Subject: Re: NSTreeController / NSOutlineView vs. sorting
- From: Pierre Bernard <email@hidden>
- Date: Wed, 31 Aug 2005 23:17:31 +0200
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:
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:
This email sent to email@hidden