Re: TIFFRepresentation/NSDragPboard issues
Re: TIFFRepresentation/NSDragPboard issues
- Subject: Re: TIFFRepresentation/NSDragPboard issues
- From: "Jeffrey E. Forcier" <email@hidden>
- Date: Wed, 21 Sep 2005 20:46:26 -0400
On Sep 21, 2005, at 6:36 PM, John C. Randolph wrote:
I have no idea what effect the Python bridge is having on this, but
why are you generating the tiff data in the mousedown: method,
before you even know if you need it? If you implement -
pasteboard:provideDataForType:, the framework will send you that
message when the tiff data is needed.
To be honest, because the docs for NSView.dragImage:etc:etc: state
that one could put the drag code in either mouseDown *or*
mouseDragged, and since I'm fairly confused by the 'at' and 'offset'
arguments of dragImage, it looked like it would've been simpler to
put the code in mouseDown.
Since mouseDown appeared to only fire once during a click-n-drag
action, I didn't think anything bad would come of it. Go figure =)
Anyway, moving those few lines into mouseDragged has solved the
problem neatly, so thanks for breaking me out of my rut.
As for provideDataForType, from the docs it looks like that's more
for the receiving end of the drag...? Either way, the drag and drop
between two of my NSImageView subclasses now appears to work as
intended without overriding/implementing that method.
Anyway, thanks again for the response. I apologize if this was too
stupid a question; I searched Google and every Cocoa/ObjC/PyObjC site/
list I could find, and got nothing.
Regards,
Jeff
--
Jeffrey E. Forcier
Junior Developer, Research and Development
Stroz Friedberg, LLC
15 Maiden Lane, 12th Floor
New York, NY 10038
[main]212-981-6540 [direct]212-981-6546
http://www.strozllc.com
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No right to
confidential or privileged treatment of this message is waived or lost
by any error in transmission. If you have received this message in
error, please immediately notify the sender by e-mail or by telephone at
212.981.6540, delete the message and all copies from your system and
destroy any hard copies. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message if you are
not the intended recipient.
_______________________________________________
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