Re: NSOutlineView: the drag doesn't display properly
Re: NSOutlineView: the drag doesn't display properly
- Subject: Re: NSOutlineView: the drag doesn't display properly
- From: Alexandre Aybes <email@hidden>
- Date: Sun, 19 Oct 2003 12:46:23 -0700
Actually, as I was playing around with it I reduced it to its simplest
form (in a hope that I was doing something wrong, but nothing changed):
- (NSDragOperation)outlineView:(NSOutlineView*)olv validateDrop:(id
<NSDraggingInfo>)info proposedItem:(id)item
proposedChildIndex:(int)index
{
NSDragOperation dragOperation = item ? NSDragOperationNone :
NSDragOperationMove;
return dragOperation;
}
Oh, and even if I just remove the item ? stuff, and simply return
NSDragOperationMove, it still does the same...
Any clue? :-(
Thanks,
Alex.
On Oct 18, 2003, at 6:04 PM, Pete Yandell wrote:
>
What does your
>
outlineView:validateDrop:proposedItem:proposedChildIndex: method look
>
like? The answer is most likely in there somewhere.
>
>
Pete Yandell
>
http://pete.yandell.com/
>
>
On Sunday, October 19, 2003, at 01:57 AM, Alexandre Aybes wrote:
>
>
> Hello,
>
>
>
> I have a problem in an NSOutlineView:
>
>
>
> When I drag items the little bar that indicates where I am currently
>
> dragging to does not display properly, it always shows as if I was
>
> dragging above the first element.
>
>
>
> I put a screen shot on my website that you can see there:
>
> http://www.pommsoft.com/homes/alex/outline-view-dnd.jpg
>
>
>
> On this screen shot, I am dragging the item that is circled in red
>
> (bottom one) and I would expect the indicator to show just below it,
>
> where I am currently dragging to, but for some reason it shows at the
>
> top of the outline (other red circle at the top).
>
>
>
> Does any one have any idea about what could be going on? I am lost!
>
>
>
> This happens on Jaguar, and all other versions of Mac OS X I've had a
>
> chance to test it on.
>
>
>
> Thanks a lot,
>
> Alex.
>
_______________________________________________
>
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.
_______________________________________________
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.