| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
You might want to use NSDragOperationDelete...
On Sun, 31 Oct 2004 15:36:01 -0800, Ken Victor <email@hidden> wrote:i'd like to implement dragging a row from an NSTableView to the trash> draggedImage:endedAt:operation: to get access to the appropriate
icon (in the dock) to indicate delete the dragged row. the only way i
can figure out how to accomplish this is to provide a subclass of
NSTableView that implements draggedImage:endedAt:operation: and to
use either an instance variable in my subclass or a global to
indicate which row is being dragged. ie, i can't see any other way
for either the NSTableView delegate or data source to get control
when the drag ends at the trash icon, and i can't see any way for
NSDraggingInfo.
is there a cleaner way to do this? ie, am i missing something simple?
(or not so simple?)
thanx,
ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
--
--Olivier
| References: | |
| >Re: drag delete from NSTableView (From: Jean-Olivier Lanctôt <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.