Re: Drag out
Re: Drag out
- Subject: Re: Drag out
- From: Nikolay Ilduganov <email@hidden>
- Date: Fri, 10 Oct 2003 21:21:23 +0700
Drag to trash can be enabled overriding methods in NSTableView subclass
- (unsigned int)draggingSourceOperationMaskForLocal:(BOOL)isLocal
{
return NSDragOperationDelete;
}
- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint
operation:(NSDragOperation)operation
{
if(operation == NSDragOperationDelete)
{
// do delete
}
}
On Thursday, Oct 9, 2003, at 07:38 Asia/Novosibirsk, M. Uli Kusterer
wrote:
At 16:26 Uhr -0700 08.10.2003, Nick Zitzmann wrote:
If you just want the row to be deleted, then it's probably a better
idea to make the application work consistently with other
applications, and assign an action to the Delete key that removes the
data from the source. In most cases, drag & drop is for copying or
moving data, not deleting it...
Another option would be to support drag-to-trash for deleting list
items. In most cases this seems to be the more natural solution for
me. Not sure how you detect a drag to the trash in Cocoa, but it's
possible in Carbon, so it ought to be available in Cocoa as well.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.
_______________________________________________
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.
References: | |
| >Re: Drag out (From: "M. Uli Kusterer" <email@hidden>) |