mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 20:51:55 +00:00
* Source/NSColorPanel.m (-_magnify:): Use a local auto release
pool in loop. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36613 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ba3be347fb
commit
118dac6092
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-05-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSColorPanel.m (-_magnify:): Use a local auto release
|
||||||
|
pool in loop.
|
||||||
|
|
||||||
2013-05-06 German A. Arias <german@xelalug.org>
|
2013-05-06 German A. Arias <german@xelalug.org>
|
||||||
|
|
||||||
* Source/NSSearchFieldCell.m: Add method -resetCursorRect:inView: and an
|
* Source/NSSearchFieldCell.m: Add method -resetCursorRect:inView: and an
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "config.h"
|
#import "config.h"
|
||||||
|
#import <Foundation/NSAutoreleasePool.h>
|
||||||
#import <Foundation/NSBundle.h>
|
#import <Foundation/NSBundle.h>
|
||||||
#import <Foundation/NSEnumerator.h>
|
#import <Foundation/NSEnumerator.h>
|
||||||
#import <Foundation/NSException.h>
|
#import <Foundation/NSException.h>
|
||||||
|
@ -389,7 +390,8 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel;
|
||||||
do {
|
do {
|
||||||
NSPoint mouseLoc;
|
NSPoint mouseLoc;
|
||||||
NSImage *img;
|
NSImage *img;
|
||||||
|
CREATE_AUTORELEASE_POOL(pool);
|
||||||
|
|
||||||
currentEvent = [NSApp nextEventMatchingMask: NSLeftMouseDownMask | NSLeftMouseUpMask | NSMouseMovedMask
|
currentEvent = [NSApp nextEventMatchingMask: NSLeftMouseDownMask | NSLeftMouseUpMask | NSMouseMovedMask
|
||||||
untilDate: [NSDate distantFuture]
|
untilDate: [NSDate distantFuture]
|
||||||
inMode: NSEventTrackingRunLoopMode
|
inMode: NSEventTrackingRunLoopMode
|
||||||
|
@ -406,7 +408,8 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel;
|
||||||
NSColor *color = [rep colorAtX: 0 y: 0];
|
NSColor *color = [rep colorAtX: 0 y: 0];
|
||||||
[self setColor: color];
|
[self setColor: color];
|
||||||
}
|
}
|
||||||
} while ([currentEvent type] != NSLeftMouseUp &&
|
[pool drain];
|
||||||
|
} while ([currentEvent type] != NSLeftMouseUp &&
|
||||||
[currentEvent type] != NSLeftMouseDown);
|
[currentEvent type] != NSLeftMouseDown);
|
||||||
}
|
}
|
||||||
NS_HANDLER
|
NS_HANDLER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue