Re: NSOutlineView drag hilight problem
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.