• 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
Live sorting in NSTreeController and NSOutlineView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Live sorting in NSTreeController and NSOutlineView?


  • Subject: Live sorting in NSTreeController and NSOutlineView?
  • From: Andrew Merenbach <email@hidden>
  • Date: Thu, 20 Oct 2005 21:45:15 -0700

Hi, everyone. After extensive archive searching, I've come across nothing that relates to this simple (or so I might think?) idea for outline view sorting.

Take Apple's OutlineEdit example--run it. Enter some to-do items, click the first column header, and *poof* it's all sorted, neat and tidy. Add a new entry--it does not wind up placed correctly (alphabetically). Changing existing entries does not cause automatic reordering, either.

The NSTreeController method -rearrangeObjects fails to do anything that I perceive as useful--apparently it's just for subclasses?

I have an outline view with a single column. It contains strings in a nested hierarchy of modelled entities that have combined leaf/node structure (if that's what you'd call it)--a single entity has children, all of whom are of the same entity type.

I have tried all manner of connections with sortDescriptors and other bindings. If I would like my outline view to be sorted alphabetically 100% of the time and to perform automatic, 'live' resorting whenever a single entity is edited, what's the best (i.e., most efficient and not-too-abstruse) way of doing this? (I don't mind if I have to go to leaf-node, but it seems like overkill?)

Many thanks,
    Andrew
_______________________________________________
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


  • Prev by Date: Re: NSBezierPath containsPoint?
  • Next by Date: Re: Core Data: Dual-Inverse Relation Possible in Modeler?
  • Previous by thread: Re: Xcode 2.1 & Subversion svn:// fix?
  • Next by thread: Binding to CoreImage?
  • Index(es):
    • Date
    • Thread