• 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: Autoscrolling in NSDraggingDestination
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autoscrolling in NSDraggingDestination


  • Subject: Re: Autoscrolling in NSDraggingDestination
  • From: Graham Cox <email@hidden>
  • Date: Wed, 06 Feb 2013 13:53:22 +1100

On 06/02/2013, at 12:31 PM, Kyle Sluder <email@hidden> wrote:

> On Tue, Feb 5, 2013, at 03:39 PM, Graham Cox wrote:
>> I need to autoscroll my view when I'm handling -draggingUpdated: but
>> -autoscroll: takes an NSEvent and I don't have one. I thought I could use
>> [myWindow currentEvent] but that doesn't seem correct for the dragging
>> session.
>
> Why not? If you want to be safe, you can ask the current event if it is
> a mouse event.
>
> (Ideally, the method would be -draggingUpdated:forEvent:…)
>
> --Kyle Sluder


Actually, the problem isn't what I thought it was.

It seemed as if the current event wasn't being updated during the dragging session, but it turns out the problem is that -draggingUpdated: is only called while the drag is within my view - in which case there is nothing to autoscroll. If I drag beyond the edge of the view, -draggingUpdated: is no longer called, so I still can't autoscroll....

So, the question is how can I tap into the dragging session loop to do the autoscroll?

--Graham



_______________________________________________

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


  • Follow-Ups:
    • Re: Autoscrolling in NSDraggingDestination
      • From: Kyle Sluder <email@hidden>
References: 
 >Autoscrolling in NSDraggingDestination (From: Graham Cox <email@hidden>)
 >Re: Autoscrolling in NSDraggingDestination (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Autoscrolling in NSDraggingDestination
  • Next by Date: Warning users when editing multiple items
  • Previous by thread: Re: Autoscrolling in NSDraggingDestination
  • Next by thread: Re: Autoscrolling in NSDraggingDestination
  • Index(es):
    • Date
    • Thread