Re: NSOutlineView and the trash can, take 2
Re: NSOutlineView and the trash can, take 2
- Subject: Re: NSOutlineView and the trash can, take 2
- From: Dominic Yu <email@hidden>
- Date: Tue, 2 Aug 2005 22:41:11 -0700
2005/8/2, John Stiles <email@hidden>:
> - drag items from the outline view into the Trash to delete them
You do use NSDragOperationDelete. Here's a snippet from one of my programs:
- (unsigned int)draggingSourceOperationMaskForLocal:(BOOL)isLocal {
return isLocal ? NSDragOperationNone :
NSDragOperationGeneric | NSDragOperationCopy | NSDragOperationDelete;
}
- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint
operation:(NSDragOperation)operation {
if (operation == NSDragOperationDelete) {
// do deleting stuff here
}
}
-Dominic
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden