I gave that session. At let me sate for the record, now, that exactly when drag 
starts is UNDEFINED. Obviously, it will start soon!

I've been in your shoes before (different company). I've had to make 
cross-platform code work with asynchronous OS X API where other platforms had 
synchronous API. (Sheets vs modal dialogs). The long term answer is to get your 
cross-platform code to be able to deal with this. I found that once the 
cross-platform code works asynch, on the platform that requires things to be 
synchronous, it's straightforward to call the cross-platform synch calls. Both 
platforms stay happy this way.

-raleigh

On Mar 14, 2012, at 9:49 PM, Joseph Ranieri <[email protected]> wrote:

> I've got a cross platform codebase that expects drag and drop
> operations to be performed synchronously, as has always been the case
> on Mac OS and Windows. Now I'm looking at upgrading us to use the 10.7
> multi-image dragging API, but I have the problem of
> beginDraggingSessionWithItems:event:source: being asynchronous.
> 
> Since WWDC 2011's session 115 says "the drag actually starts .. next
> turn of the runloop", I simply ran my own event loop until
> draggingSession:endedAtPoint:operation: tells me the drag session is
> over. This appears to work perfectly.
> 
> So I'm wondering: is this supported? or should I continue to use the
> older synchronous APIs?
> 
> -- Joe Ranieri
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/ledet%40apple.com
> 
> This email sent to [email protected]


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to