Re: Dragging
Re: Dragging
- Subject: Re: Dragging
- From: Koen van der Drift <email@hidden>
- Date: Sat, 31 Jan 2004 12:42:55 -0500
I figured out. I just had to encode my object. I still find it a bit
annoying that I can't simply send the object.
On 30 Jan 2004, at 9:09 AM, Herr Witten wrote:
I want to transfer my own object instances in a drag and drop
operation without having to convert the object to NSData and then back
again. Is this possible? If not, how do I convert an object to NSData
and back again? Thanks.
I have a palette from which I drag objects to the main window to build
the model. What I do now is only store the name of the object in the
pastboard, and using that name create the object when it is dropped in
the main view. This works fine.
As an additional question, is there some sample code that shows how to
draw guidelines during a drag (just as in InterfaceBuilder)?
thanks,
- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.