From: Kent Sutherland Date: Thu, 13 Nov 2003 12:43:13 +0000 (+0000) Subject: Weeeeeeeeee, from the right! X-Git-Tag: v0.1~19 X-Git-Url: http://git.ithinksw.org/ITKit.git/commitdiff_plain/158136798b6214b18ee1c7ae8401c64cda8b7e57?hp=73dd3a56539012847315b2aacae1de73d5085e74 Weeeeeeeeee, from the right! --- diff --git a/ITSlideHorizontallyWindowEffect.m b/ITSlideHorizontallyWindowEffect.m index e3a683c..084211b 100755 --- a/ITSlideHorizontallyWindowEffect.m +++ b/ITSlideHorizontallyWindowEffect.m @@ -156,8 +156,16 @@ - (void)setSlide:(float)distance { - CGAffineTransform transform = CGAffineTransformMakeTranslation((distance - (32.0 + [[_window screen] visibleFrame].origin.x)), - -( [[_window screen] frame].size.height - ( [_window frame].size.height + 32.0 + [[_window screen] visibleFrame].origin.y) ) ); + CGAffineTransform transform; + if ( [(ITTransientStatusWindow *)_window horizontalPosition] == ITWindowPositionLeft ) { + NSLog(@"%f", (distance - (32.0 + [[_window screen] visibleFrame].origin.x))); + transform = CGAffineTransformMakeTranslation((distance - (32.0 + [[_window screen] visibleFrame].origin.x)), + -( [[_window screen] frame].size.height - ( [_window frame].size.height + 32.0 + [[_window screen] visibleFrame].origin.y) ) ); + } else if ( [(ITTransientStatusWindow *)_window horizontalPosition] == ITWindowPositionRight ) { + NSLog(@"%f", [[_window screen] visibleFrame].size.width - ([_window frame].size.width - distance)); + transform = CGAffineTransformMakeTranslation((32.0 - (([[_window screen] visibleFrame].size.width / 2) + distance)), + -( [[_window screen] frame].size.height - ( [_window frame].size.height + 32.0 + [[_window screen] visibleFrame].origin.y) ) ); + } CGSSetWindowTransform([NSApp contextID], (CGSWindowID)[_window windowNumber], diff --git a/Showcase/English.lproj/MainMenu.nib/info.nib b/Showcase/English.lproj/MainMenu.nib/info.nib index 876a73d..192273f 100755 --- a/Showcase/English.lproj/MainMenu.nib/info.nib +++ b/Showcase/English.lproj/MainMenu.nib/info.nib @@ -12,12 +12,12 @@ 1 271 349 44 0 0 1056 770 IBFramework Version - 291.0 + 349.0 IBOpenObjects 21 IBSystem Version - 6L60 + 7C107 diff --git a/Showcase/English.lproj/MainMenu.nib/keyedobjects.nib b/Showcase/English.lproj/MainMenu.nib/keyedobjects.nib index f767f1b..0dcb82d 100755 Binary files a/Showcase/English.lproj/MainMenu.nib/keyedobjects.nib and b/Showcase/English.lproj/MainMenu.nib/keyedobjects.nib differ