Hopefully this will come across well...

If each ship you are dragging is a visual representation of a ship object, then, your receiver needs to be able to accept that object.

While I don't know much about how drag-n-drop works (haven't implemented it yet), I imagine that what you need to know is well-covered in the documentation & various examples as it is a basic/staple of a visual operating system such as Mac.

Essentially, at least in older versions of Windows, you had some sort of object identifier that was passed and then the receiver acted on that identifier appropriately. Perhaps the newer systems will pass the whole object, or maybe (better) just a reference to it.

Hopefully this will get you started.  If not, just File 13 the message.

Peace, Love, and Light,
/s/ Jon C. Munson II

Quoting Gustavo Pizano <[EMAIL PROTECTED]>:

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/jmunson%40his.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