• 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
Outline view / Drag-n-drop example, and issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Outline view / Drag-n-drop example, and issues


  • Subject: Outline view / Drag-n-drop example, and issues
  • From: email@hidden
  • Date: Mon, 15 Aug 2005 20:16:45 -0500

In the process of exploring NSOutlineView/NSTreeController and Core Data managed objects,
I've come up with an extension to the OutlineEdit example (DragAndDropOutlineEdit) which I
think would be of interest... it shows some things about moving relationships and chunks of the
object graph around. It also shows reasonably safe ways to map between managed objects,
the opaque objects in the tree controller, and index paths.


Can anyone suggest a good place to post it?

Also, along the way I've come up with a couple of questions/issues:

(a) it would be nice, if dragging a parent were to result in dragging along the children too, that
the drag image would include the child rows, but there doesn't seem to be an obvious way
to get the outline view to do that, unless there's a way to override the set of rows before the
view draws the drag image. Anyone have an idea how to do that?


(b) expansion still seems to be an issue, in that there doesn't seem to be a way for the outline
view to bind expansion to some attribute of a managed object. I can get a row to expand if
it's the drop target, but for example, if you undo, what gets put back into the view is never
expanded (this is under the assumption that anything maintained in the view has to be tied
to the model, and not made persistent in some other way). Any ideas?


Both cases suggest enhancements to NSOutlineView would be useful.

Matt Holiday
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


  • Prev by Date: Re: WebKit and window.external
  • Next by Date: Sym Links and NSFileManager
  • Previous by thread: Re: WebKit and window.external
  • Next by thread: Re: Outline view / Drag-n-drop example, and issues
  • Index(es):
    • Date
    • Thread