NSOutlineView as drag destination
NSOutlineView as drag destination
- Subject: NSOutlineView as drag destination
- From: David Chan <email@hidden>
- Date: Fri, 7 Oct 2005 14:53:58 +0800
Dear all,
I have been working on a library application somewhat similar to
Delicious Library application. At the moment I am trying to implement
a drag and drop functionality that allow user to drag a book image
from the customview that display the book collection and drop it in
one of the subcategories listed under my outlineview. The pasteboard
is supposed to carry info or ID of the book being dragged and once it
is dropped in X category, I would want to process the book's info and
change its category to X category.
So far, without really understanding it, I manage to follow Andrew
Stone's tutorial on the web and get the image dragged here and there.
But I am stuck with:
1. How to notify my outlineview that my mouse cursor is on top of one
of its item's child.?
2. And maybe when no 1 issue is solved, can I actually check whether
there is anything in the pasteboard (that is, a dragging has taken
place), take out the item inside the pasteboard and do something about
it?
At the moment, for some reasons (lack of contemplating during design
phase probably), my outlineview's datasource is handled by different
class to that of my customview which implement the drag and drop. So I
suspect that would be problem?
Er.. I am not sure if I manage to give a clear idea of what I am
trying to do here, but I hope so. Thanks a lot guys.
Regards
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden