• 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: Rearranging NSOutlineView via drag-and-drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rearranging NSOutlineView via drag-and-drop


  • Subject: Re: Rearranging NSOutlineView via drag-and-drop
  • From: Roland King <email@hidden>
  • Date: Sun, 04 Jan 2015 21:33:11 +0800

> On 4 Jan 2015, at 21:22, Charles Jenkins <email@hidden> wrote:
>
> Quincy:
>
> Thanks for the answer! But something is still missing...
>
> moveItemAtIndex:… does indeed move the items around to the proper places in the tree, but the outline view control doesn’t update disclosure triangles. Meaning, if I drag an item’s only child someplace else, the now-childless parent keeps its useless disclosure triangle. Worse, if I drop a new child onto an item that formerly did not have children, the needed disclosure triangle doesn’t appear, and then there’s no way in that session to manipulate the child item again.
>
> Is there a way to indicate that disclosure triangles and item icons should be updated after the move animation ends?
>
> —

No - if your changes change the status of an item from having children to not having them or vice-versa and you want disclosure triangles to update, you need to reload that row as well to get outlineView:isItemExpandable called again to update the disclosure triangle. I did this a couple of weeks ago, it’s very easy.

The outline view doesn’t imply for itself where to show disclosure triangles, it asks the delegate, you have to force it to ask again. For that you reload that one row.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Rearranging NSOutlineView via drag-and-drop (From: Charles Jenkins <email@hidden>)
 >Re: Rearranging NSOutlineView via drag-and-drop (From: Quincey Morris <email@hidden>)
 >Re: Rearranging NSOutlineView via drag-and-drop (From: Charles Jenkins <email@hidden>)

  • Prev by Date: Re: Rearranging NSOutlineView via drag-and-drop
  • Next by Date: Re: Rearranging NSOutlineView via drag-and-drop
  • Previous by thread: Re: Rearranging NSOutlineView via drag-and-drop
  • Next by thread: GC / ARC question regarding screensavers under Mavericks
  • Index(es):
    • Date
    • Thread