On Fri, May 14, 2010 at 5:45 AM, Billy Flatman <[email protected]> wrote:
> Hi Quincey,
>
> Thanks for you help. I am trying to pass the class reference around for drag 
> and drop, I think i'll try your idea of converting the pointer to a number,

The best way to pass arbitrary pointers around your app for drag and
drop is to add a method to retrieve that pointer to your dragging
source, then the destination can use [[draggingInfo draggingSource]
retrieveWhateverInfo] to get it. This avoids all of this scary
pasteboard manipulation, and ensures that inter-process drags don't
explode because the pointer went invalid.

Mike
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to