[Top][All Lists]

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

Re: Should delta raise exception when not available?

From: Banlu Kemiyatorn
Subject: Re: Should delta raise exception when not available?
Date: Sun, 23 Jan 2011 19:56:02 +0700

for deltaY, as the mouse moves up the screen, the value is negative;
and as it moves down the screen, the value is positive.
We have it working in backward.

On Fri, Dec 24, 2010 at 1:18 AM, Fred Kiefer <address@hidden> wrote:
> Am 22.12.2010 13:32, schrieb Banlu Kemiyatorn:
>> 2010/12/22 Fred Kiefer <address@hidden>:
>>> Sorry Banlu,
>>> I missed this second mail. This explains my stupid question.
>>> I had a short look at the Apple documentation and you are right, it
>>> doesn't state what happens when this method is called on the wrong event
>>> type. Most likely we jst extrapolated the behaviour from the other
>>> methods on NSEvent. The better way to find out is of course to write a
>>> short test program on Cocoa and implement the same behaviour.
>>> I will do that and add this to our test suite.
>>> Fred
>> Hi Fred,
>> That should be me, I sent the second mail coz DrNHS bugged me my first
>> question was lacking of info.
>> AFAICT it didn't happen in Cocoa since I have the problem only when
>> porting an app I released called Helicropper from a working OSX
>> version. But even if it does, I hardly see why someone would expect a
>> delta to raise an exception than giving a zero.  If they are catching
>> stray events they probably should check for event type.
>> BAnlu
> Done, I will provide the promised test case later one. Tests on Cocoa
> showed that your proposal is correct.
> Fred
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden

    .----.     Banlu Kemiyatorn
  /.../\...\   漫画家
 |.../  \...| (Free Software Advocacy & Development)
 |../    \..| (Studio Work For Hire)
  \/      \/ (Studio Research)

reply via email to

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