• 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: Determining when dragging begins and ends
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining when dragging begins and ends


  • Subject: Re: Determining when dragging begins and ends
  • From: Michael Nickerson <email@hidden>
  • Date: Sat, 08 May 2010 03:23:03 -0400

On May 08, 2010, at 12:14 AM, Dave DeLong wrote:

> So in a nutshell:
>
> How can I reliably know when dragging begins and ends?
>
> Thanks,
>
> Dave

You can subclass NSOutlineView and call to your delegate on the NSDraggingSource protocol methods:

- (NSDragOperation)draggingEntered:
- (NSDragOperation)draggingUpdated:
- (void)draggingExited:
- (void)draggedImage:endedAt:operation:

You (probably) don't need the draggingUpdated: method, but I thought I'd throw it in just in case.


--------------------------------------
Darkshadow
(aka Michael Nickerson)
http://www.nightproductions.net


_______________________________________________

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

References: 
 >Determining when dragging begins and ends (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: How do you set the text in an NSTextView?
  • Next by Date: Re: Program crashed after edit values at NSTableView
  • Previous by thread: Re: Determining when dragging begins and ends
  • Next by thread: Program crashed after edit values at NSTableView
  • Index(es):
    • Date
    • Thread