On 9.12.2008, at 0:01, Graham Cox wrote:
Use a custom drag type for your ship objects.
Definitely DO NOT use image size as a way to identify the ship!
That's just weird.
Learn about MVC (Model-View-Controller). Your ship objects are part
of the model, which could include a list of p
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 pasteb
On 9 Dec 2008, at 5:11 am, Gustavo Pizano wrote:
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 repres
Go for option #1, use a "custom drag type" (in your case ships) to
pasteboard. 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.
Make sure you register you drag destination for your custom d
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 kn
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
"shipsviewcontaine