• 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 conundrum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Outlineview conundrum


  • Subject: Outlineview conundrum
  • From: Scott Anguish <email@hidden>
  • Date: Sun, 13 Oct 2002 18:54:46 -0400

I've got an interesting situation I need to work around when it comes to using the NSOutlineView


Category A
Category B
Category C
Item
item
Item
Item
Item
Category D
Item
Item
Category E
Category F

A user will drag an 'item' into the outline view, the position that they put it (the Category that it is under) is the important aspect, although the order is also relevant.

The problem is that doing the initial drag into the outline view triggers an async fetch of information, that could take some time to fill in.

Normally, I'd just put a holder item into the list, and then when the fetch is completed, update it.

BUT, there is the problem. The Outline allows dragging of both items, and categories to reorder. If this happens during the period when the fetch is happening, things get tricky. The drag and drop in OutlineView requires encoding the item and children to the pasteboard. When it is moved to the new location and de-archived, then the instance will have changed...

When the drag is started, I'll need to remember the the category that it is being dragged into (since that is the most important aspect), and secondarily, some ID of the item that it should follow.. normally I'd just use the instances of both category and item...

If the category is dragged to a new location, then the item which is still fetching should be inserted under the new location of the category, and if possible, after the item that was inserted.

If the category has been deleted, then I guess it needs to be inserted at the root level.

But, this seems like a major hassle...

Anyone have any suggestions.. something I'm missing?

thanks

scott
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Outlineview conundrum
      • From: Brent Gulanowski <email@hidden>
  • Prev by Date: Re: Beginner Question
  • Next by Date: Re: is protected broken, or am I?
  • Previous by thread: Error when switching to new nib format
  • Next by thread: Re: Outlineview conundrum
  • Index(es):
    • Date
    • Thread