• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TIFFRepresentation/NSDragPboard issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: TIFFRepresentation/NSDragPboard issues
      • From: "John C. Randolph" <email@hidden>
References: 
 >TIFFRepresentation/NSDragPboard issues (From: "Jeffrey E. Forcier" <email@hidden>)
 >Re: TIFFRepresentation/NSDragPboard issues (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: How do I create a file name with a "/" in it?
  • Next by Date: Re: NSDatePicker Question with NSArrayController and Master/Detail interface
  • Previous by thread: Re: TIFFRepresentation/NSDragPboard issues
  • Next by thread: Re: TIFFRepresentation/NSDragPboard issues
  • Index(es):
    • Date
    • Thread