[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSDragView wrong position

From: Enrico Sersale
Subject: Re: GSDragView wrong position
Date: Sat, 02 Apr 2005 02:32:43 +0300

On 2005-04-01 19:08:37 +0300 Richard Frith-Macdonald <richard@brainstorm.co.uk> 

On 2005-04-01 13:24:33 +0100 Enrico Sersale <enrico@dtedu.net> wrote:

On 2005-04-01 12:19:37 +0300 Richard Frith-Macdonald <richard@brainstorm.co.uk> wrote:

[  ]

Other classes as NSColorPanel, NSImageView, NSToolbarItem, etc. use NSZeroPoint as argument. In these cases the position is shifted up and right. This should be fixed.

I've changed NSColorPanel and NSImageView to center the image on the mouse position ... I hope that's the desired/correct behavior.

Ok. Now NSColorPanel and NSImageView work as expected.

[  ]

Reading the documentation for -dragImageForRows:event:dragImageOffset: I saw that the image was supposed to be centered on the mouse pointer but adjusted by the offset returtned fropm that method. The code was not doing that at all, so I implemented that behavior as far as I understand it.

NSTableView is flipped; to get the correct behavior we must only change:
  s.height = p.y - s.height/2;
  s.height = p.y + s.height/2;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]