discuss-gnustep
[Top][All Lists]
Advanced

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

additional problem with NSRunLoop on Windows


From: Lloyd Dupont
Subject: additional problem with NSRunLoop on Windows
Date: Thu, 23 Feb 2006 11:53:32 +1000

Im writing a .NET desktop application on Windows.
However I'm using GNUstep to power the data part of my application (which is still evolving on MacOSX).

Recently I had problem with the NSNotificationQueue which needed to be triggered manually and I was advised to use something along this line:

[[NSRunLoop currentRunLoop]
   runMode: @"NSDefaultRunLoopMode"
   beforeDate: (NSDate*) [NSDate distantPast]]

So did I and it fixed the problem I was looking at.

But now my application behave very strangely.
For example if my (GNUstep aware) windows is in the background and I click on it it receive (in this order)
mouse up (first ?!)
mouse down (second ?!)

whereas it should receive (and it does without the NSRunLoop trick):
mouse down
mouse up

ouch.....
I noticed that in some other case GNUstep do some weird thing with my event loop sometimes....


So the questions are:
1. is there a way to fix that? (I think I will revert to my idea of using GSNotifyASAP()) 2. even though I'mnot running a GNUstep app, is ther some method calling the NSRunLoop without me knowing?




reply via email to

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