• 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: NSOutlineView drag hilight problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView drag hilight problem


  • Subject: Re: NSOutlineView drag hilight problem
  • From: Pete Yandell <email@hidden>
  • Date: Fri, 22 Aug 2003 10:12:54 +1000

On Friday, August 22, 2003, at 09:21 AM, Christopher Corbell wrote:

> Is it possible to defeat 'insertion'-type hilighting between rows in an
> NSOutlineView for a particular type of drag?

You need to have your
outlineView:validateDrop:proposedItem:proposedIndex: method return
NSDragOperationNone whenever the proposed index is not equal to
NSOutlineViewDropOnItemIndex.

- (NSDragOperation)outlineView:(MyOutlineView*)outlineView
validateDrop:(id <NSDraggingInfo>)info proposedItem:(MyItem*)group
proposedChildIndex:(int)index
{
// Only allow dropping on items, not between them
if (index != NSOutlineViewDropOnItemIndex) return
NSDragOperationNone;

// Do your other processing here
}

Pete Yandell
http://pete.yandell.com/
_______________________________________________
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.

References: 
 >NSOutlineView drag hilight problem (From: Christopher Corbell <email@hidden>)

  • Prev by Date: NSTableView scrollbars
  • Next by Date: Re: Synchronous method: How to "wait" for Notification to occur?
  • Previous by thread: NSOutlineView drag hilight problem
  • Next by thread: NSTableView scrollbars
  • Index(es):
    • Date
    • Thread