Re: struct into a pasteboard
Re: struct into a pasteboard
- Subject: Re: struct into a pasteboard
- From: Jerry Krinock <email@hidden>
- Date: Sat, 22 Dec 2007 12:35:54 -0800
I think that what Lorenzo wants to do is to put pointer(s) on the
pasteboard, so he can change their values. Pointers on the pasteboard
don't work. (I've been down that road).
If your dragging source and destination are both within your app,
consider the "sneakerboard" method. Instead of putting your struct
into the pasteboard, put into a global variable, your "sneakerboard".
To the pasteboard, write some nonsense object, or maybe an NSString
which would be appropriate for other apps receiving your drags. Then,
when your drag destination receives a drag of your type, ignore the
pasteboard data and instead grab the value from your sneakerboard.
_______________________________________________
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