Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

promising files in drags



I'm very confused about drag promises and such. Another company wants to send our app promised drags - the files are not actually available until after our app says we'll accept the drag and the mouse is released.

If their app adds kDragFlavorTypePromiseHFS, then our app gets that and inspects the PromiseHFSFlavor struct that's in that drag item, and we can accept the file based on that struct, we return noErr to the kDragTrackingInWindow message.

Now what happens? Their app needs to add kDragFlavorTypeHFS, otherwise our app will never get a file reference, right? Or is something else supposed to happen?

Another part of the confusion is "promising" a drag flavor by adding it with nil data. Which way is better, adding kDragFlavorTypeHFS with nil data and setting the flavorDataPromised flag, or to use kDragFlavorTypePromiseHFS with the PromiseHFSFlavor struct?

_________________________________________________________
Steve Mills                              Me: 952-401-6255
Senior Software Architect                         MultiAd
email@hidden                       www.multi-ad.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.