• 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: Weird behavior of mouse location when performing a drag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird behavior of mouse location when performing a drag


  • Subject: Re: Weird behavior of mouse location when performing a drag
  • From: Graham Cox <email@hidden>
  • Date: Tue, 9 Dec 2008 09:48:34 +1100


On 9 Dec 2008, at 4:56 am, Gustavo Pizano wrote:

- (NSDragOperation)draggingUpdated:(id < NSDraggingInfo >)sender
{
	NSPoint converted = [NSEvent mouseLocation];


You should use the information you're given, where possible:


NSPoint location = [sender draggingLocation];


In this case you are supplied the appropriate point in the dragging info, there's no need to "go outside" to get it from somewhere else.



hth,

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


References: 
 >Weird behavior of mouse location when performing a drag (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Core Data request predicates and to-many relationships
  • Next by Date: Re: best practice to create Custom Objects represented by a image in a d-n-d operation
  • Previous by thread: Re: Weird behavior of mouse location when performing a drag
  • Next by thread: Re: Weird behavior of mouse location when performing a drag
  • Index(es):
    • Date
    • Thread