* Source/NSDrawer.m: Correction for NSDrawer issues with draw

temporarily showing up above the window and not syncing with
	window position.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28196 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2009-04-10 17:30:54 +00:00
parent bff13e455a
commit 008615f225
2 changed files with 13 additions and 7 deletions

View file

@ -208,7 +208,7 @@ static NSNotificationCenter *nc = nil;
- (void) startTimer
{
NSTimeInterval time = 2.0;
NSTimeInterval time = 1.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];
@ -270,7 +270,7 @@ static NSNotificationCenter *nc = nil;
{
NSRect frame = [self frame];
NSRectEdge edge = [_drawer preferredEdge];
NSSize size = frame.size; // [_drawer maxContentSize];
NSSize size = [_parentWindow frame].size;
[super setParentWindow: nil];
if (edge == NSMinXEdge) // left
@ -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];