Removing item from CollectionView by drag it out.
Removing item from CollectionView by drag it out.
- Subject: Removing item from CollectionView by drag it out.
- From: Sandro Noël <email@hidden>
- Date: Sat, 20 Feb 2010 00:50:23 -0500
Greetings
I've been looking at Collection View Drag and drop,
I've implemented the NSCollectionViewDelegate
and now I can Drop items in and everything works fine.
I've been looking at removing items from the collection view by dragging them out of the frame.
I'm confused by the proper procedures.
writeItemsAtIndexes happens just before the item is dragged and just after canDragItemsAtIndexes returns YES.
How would i go about it ?
1: when the item is dragged out of the frame, I want to remove it from the collection view as to show that I am holding the item out of the collection ( i got it in my hands and it's in limbo )
2: I could at any point drop the item back on the collection view as to cancel the deleting of the item
3: I could drag the item to another collection view in the same application as to move the item around.
3: if the item is released outside of any collection view it is lost (deleted).
if anyone can point me to a good example, that would be great.
Cheers!
Sandro_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden