• 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 / NSOutlineView vs. sorting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSTreeController / NSOutlineView vs. sorting (From: Pierre Bernard <email@hidden>)
 >Re: NSTreeController / NSOutlineView vs. sorting (From: Timothy Larkin <email@hidden>)

  • Prev by Date: Re: sampler and dynamic libraries
  • Next by Date: RE: NSTimer
  • Previous by thread: Re: NSTreeController / NSOutlineView vs. sorting
  • Next by thread: Re: NSKeyedArchiver - better ways to autosave documents?
  • Index(es):
    • Date
    • Thread