hacking through Cocoa pasteboards
hacking through Cocoa pasteboards
- Subject: hacking through Cocoa pasteboards
- From: email@hidden
- Date: Thu, 05 Jun 2003 08:31:56 -0400
Greetings!
Cocoa defines the drag and drop process in the following manner: you tell me
what you want and I will tell you when I have something for you. In technical
terms, you register for types and you are informed when your app is getting a
drag of the type you registered.
I need the reverse effect; i.e. SOMETHING (I do not know what) gets dragged
over my application. My application decides whether that SOMETHING is useful
or not... if it is useful, it registers and accepts the drop. If not, well, it
does nothing (forwards calls).
I was wondering how I implement such a design. I tried to override the
mouseEntered, mouseDragged, etc. Didn't work because the mouse was not tracked
by the specific view (that's my guess). Do I need to override NSWindow for
this and filter through all apple events that are relevant to the window? Is
there any clean way of doing this?
While we are at it, has Apple released the names of the Pasteboards that
iMovie uses? I have done cut/copy-ing of movies, but haven't been able to
paste them outside of iMovie.
Thank you for your time!
Nick
_______________________________________________
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.