• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: drag delete from NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drag delete from NSTableView


  • Subject: Re: drag delete from NSTableView
  • From: Ken Victor <email@hidden>
  • Date: Sun, 31 Oct 2004 15:53:56 -0800

where do i use this? ie, i use this in draggedImage:endedAt:operation: to detect the delete operation, but this doesn't solve the problem of my tableview delegate or datasource being given a chance to do anything, nor does it solve the problem of not having to use either an instance variable or global.

thanx,
ken


At 6:41 PM -0500 10/31/04, Jean-Olivier Lanctôt wrote:
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
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
> draggedImage:endedAt:operation: to get access to the appropriate
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:

This email sent to email@hidden



--
--Olivier

_______________________________________________
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
References: 
 >Re: drag delete from NSTableView (From: Jean-Olivier Lanctôt <email@hidden>)

  • Prev by Date: Re: drag delete from NSTableView
  • Next by Date: Binding NSPopupButton
  • Previous by thread: Re: drag delete from NSTableView
  • Next by thread: Binding NSPopupButton
  • Index(es):
    • Date
    • Thread