Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dragging



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.