Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

i.yalovecky

macrumors member
Original poster
Feb 24, 2010
67
0
How i can implement dragging highlighting (blue line) in case then i drag top level item that can be dropped only at the top level.

Example is Mail. When i dragging MAILBOXES it highlights where it will appeared very good for me.
 
As you've discovered, use the delegate methods. The tricky part about drag/dropping using an NSOutlineView is figuring out the indexing, because the index is used in relation to the parent node, not to the global list. If you're trying to maintain sort order it can be a bit messy.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.