* Headers/AppKit/NSSpeechSynthesizer.h: Added _module ivar.

* Source/NSDrawer.m: Don't set the timer since it eats a lot of CPU.
	* Source/NSPasteboard.m: Retain the path since it's autoreleased.
	* Source/NSTextView.m: Set the textview to allow undos by default.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28186 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-04-07 22:52:52 +00:00
parent d93155a768
commit 343999460b
5 changed files with 16 additions and 7 deletions

View file

@ -1,3 +1,10 @@
2009-04-07 18:43-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Headers/AppKit/NSSpeechSynthesizer.h: Added _module ivar.
* Source/NSDrawer.m: Don't set the timer since it eats a lot of CPU.
* Source/NSPasteboard.m: Retain the path since it's autoreleased.
* Source/NSTextView.m: Set the textview to allow undos by default.
2009-04-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSAlert.m (NSBeginAlertSheet, NSBeginCriticalAlertSheet,

View file

@ -104,6 +104,7 @@ extern NSString *NSSpeechDictionaryEntryPhonemes;
NSMutableArray *_dictionaries;
NSMutableDictionary *_properties;
BOOL _isSpeaking;
id _module;
}
// init...

View file

@ -208,7 +208,7 @@ static NSNotificationCenter *nc = nil;
- (void) startTimer
{
NSTimeInterval time = 0.1;
NSTimeInterval time = 2.0;
_timer = [NSTimer scheduledTimerWithTimeInterval: time
target: self
selector: @selector(_timedWindowReset)
@ -246,14 +246,14 @@ static NSNotificationCenter *nc = nil;
// [self setFrame: frame display: YES];
[self slide];
[self orderFront: self];
[self startTimer];
// [self startTimer];
}
- (void) closeOnEdge
{
NSRect frame = [self frameFromParentWindowFrame];
[self stopTimer];
// [self stopTimer];
[self slide];
[self setFrame: frame display: YES];
[self orderOut: self];
@ -311,13 +311,13 @@ static NSNotificationCenter *nc = nil;
- (void) handleWindowClose: (NSNotification *)notification
{
[self stopTimer];
// [self stopTimer];
[self close];
}
- (void) handleWindowMiniaturize: (NSNotification *)notification
{
[self stopTimer];
// [self stopTimer];
[self close];
}
@ -404,7 +404,7 @@ static NSNotificationCenter *nc = nil;
- (void) dealloc
{
[self stopTimer];
// [self stopTimer];
RELEASE(_parentWindow);
TEST_RELEASE(_pendingParentWindow);
[super dealloc];

View file

@ -1980,7 +1980,7 @@ static NSMapTable *mimeMap = NULL;
if (cmd == nil && recursion ==NO)
{
cmd = [NSTask launchPathForTool: @"gpbs"];
cmd = RETAIN([NSTask launchPathForTool: @"gpbs"]);
}
if (recursion == YES || cmd == nil)
{

View file

@ -734,6 +734,7 @@ that makes decoding and encoding compatible with the old code.
[aCoder encodeObject: [self textStorage] forKey: @"NSTextStorage"];
[aCoder encodeObject: [self textContainer] forKey: @"NSTextContainer"];
[aCoder encodeInt: 0 forKey: @"NSTVFlags"]; // no delegates, etc... set to zero.
[self setAllowsUndo: YES];
}
else
{