Go for option #1, use a  "custom drag type" (in your case ships) to
pasteboard.

aha ok understood that part. I think I know how to do it, shouldn't be different form registering a tiff representation of an image just register the NSData of the custom object no?

You could update the pasteboard with the array of dictionary
objects, the dictionary could hold the image/link to image and an identifier
field for the same.

didn't get that part good... :s, if I put in the pasteboard custom objetcs (in my case ships) each Ship has an image associated with so in my destination when I read the pasteboard I can get the ship, and know exactly which instance of ship is? for example, a carrier or a frigate or destroyer and so on. I design my model having a super class Ship, and sub classes of Ship, carrier frigate and so on.

Thanks for your help





-- Sandeep


On Mon, Dec 8, 2008 at 1:11 PM, Gustavo Pizano
<[EMAIL PROTECTED]>wrote:

Hello.

I have in a view images of ships, and Im able to drag them to another view which is the sea board, now, what is better, to create the objects of the ships in the "shipsviewcontainer" and set the object in the Pasteboard, or, just have representative images in the "shipsviewcontainer" of each ship, and once dragged to the sea create the instances of the ship that the images represent. If the last one is correct Iw as thinking if how to know which Ship Object the images that is being dragged represents, (maybe by image Size? ) I dunno what do you think its better to do, if I explain my self
good.


Thanks

Gus

_______________________________________________

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/csandeep%40gmail.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

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/gustavxcodepicora%40gmail.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

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