Re: Synchronous multi-image dragging
Re: Synchronous multi-image dragging
- Subject: Re: Synchronous multi-image dragging
- From: Raleigh Ledet <email@hidden>
- Date: Fri, 16 Mar 2012 18:43:50 -0700
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@hidden> 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@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden