• 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
OutlineView+TreeController with fixed ordering?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OutlineView+TreeController with fixed ordering?


  • Subject: OutlineView+TreeController with fixed ordering?
  • From: Thomas Lachand-Robert <email@hidden>
  • Date: Sat, 7 May 2005 16:14:49 +0200

Hi all,

I'm currently trying to get used to the new NSTreeController + NSOutlineView pair. It does a lot of things out the box, but there are some behavior I have some difficulties to implement:

- the outline view has only one column, whose header is not shown. The data should be presented in a fixed order, depending on an integer keyed "index" in the model. Currently I get that by overriding -sortDescriptors in my subclass of NSTreeController. This works when the data is first displayed, but not afterwards, when the data changes. How may I ensure the data are always ordered as required, even as they change?

- since the outline view is connected to a tree controller, it doesn't use a data source. What is the best way to implement copy/ paste and drag'n drop then? Is there some examples available?

- the data may have different forms, like strings, images, etc. (Which form is given by a particular key in the model). But outline views use the same cell for all rows, so I can't switch from NSTextFieldCell to NSImageCell. What is the best way to display such different kind of data in the same outline view?

Thanks for any help,


Thomas Lachand-Robert ********************** email@hidden << Et le chemin est long du projet à la chose. >> Molière, Tartuffe.


_______________________________________________ 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: Window Server API
  • Next by Date: Re: NSConnection Name-space and Fast User Switching
  • Previous by thread: NSTextView's drawViewBackgroundInRect: and selection
  • Next by thread: Using AWT in Cocoa-Java app
  • Index(es):
    • Date
    • Thread