mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
Fix a differnace to Cocoa and warn about another one.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28135 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b9b3df0631
commit
5215126ca7
3 changed files with 17 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
|||
2009-03-26 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSView.m (-setNeedsDisplay:, -setNeedsDisplayInRect:):
|
||||
Warn about the GNUstep secondary thread behaviour not being
|
||||
portable to Cocoa.
|
||||
* Source/NSApplication.m
|
||||
(-nextEventMatchingMask:untilDate:inMode:dequeue:):
|
||||
Use distantPast instead of distantFuture as default of expiration.
|
||||
|
||||
2009-03-25 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSGraphicsContext.m (-restoreGraphicsState,
|
||||
|
|
|
@ -2006,7 +2006,7 @@ See -runModalForWindow:
|
|||
[self updateWindows];
|
||||
}
|
||||
if (!expiration)
|
||||
expiration = [NSDate distantFuture];
|
||||
expiration = [NSDate distantPast];
|
||||
|
||||
if (flag)
|
||||
event = DPSGetEvent(GSCurrentServer(), mask, expiration, mode);
|
||||
|
|
|
@ -2634,6 +2634,8 @@ in the main thread.
|
|||
NSNumber *n = [[NSNumber alloc] initWithBool: flag];
|
||||
if (GSCurrentThread() != GSAppKitThread)
|
||||
{
|
||||
NSDebugMLLog (@"MacOSXCompatibility",
|
||||
@"setNeedsDisplay: called on secondary thread");
|
||||
[self performSelectorOnMainThread: @selector(_setNeedsDisplay_real:)
|
||||
withObject: n
|
||||
waitUntilDone: NO];
|
||||
|
@ -2702,11 +2704,14 @@ in the main thread.
|
|||
NSValue *v = [[NSValue alloc]
|
||||
initWithBytes: &invalidRect
|
||||
objCType: @encode(NSRect)];
|
||||
|
||||
if (GSCurrentThread() != GSAppKitThread)
|
||||
{
|
||||
NSDebugMLLog (@"MacOSXCompatibility",
|
||||
@"setNeedsDisplayInRect: called on secondary thread");
|
||||
[self performSelectorOnMainThread: @selector(_setNeedsDisplayInRect_real:)
|
||||
withObject: v
|
||||
waitUntilDone: NO];
|
||||
withObject: v
|
||||
waitUntilDone: NO];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue