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....