git.ithinksw.org
/
MenuTunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moving over to a new XCode project file... it builds fine, and the builds
[MenuTunes.git]
/
StatusWindow.m
diff --git
a/StatusWindow.m
b/StatusWindow.m
index
8377ac0
..
21dd278
100755
(executable)
--- a/
StatusWindow.m
+++ b/
StatusWindow.m
@@
-121,7
+121,9
@@
float excessHeight = 0.0;
NSPoint windowOrigin;
ITImageView *imageView;
float excessHeight = 0.0;
NSPoint windowOrigin;
ITImageView *imageView;
-
+ BOOL shouldAnimate = ( ! (([self visibilityState] == ITWindowAppearingState) ||
+ ([self visibilityState] == ITWindowVanishingState)) );
+
if ( _sizing == StatusWindowSmall ) {
divisor = SMALL_DIVISOR;
} else if ( _sizing == StatusWindowMini ) {
if ( _sizing == StatusWindowSmall ) {
divisor = SMALL_DIVISOR;
} else if ( _sizing == StatusWindowMini ) {
@@
-173,7
+175,7
@@
[self setFrame:NSMakeRect( windowOrigin.x,
windowOrigin.y,
windowWidth,
[self setFrame:NSMakeRect( windowOrigin.x,
windowOrigin.y,
windowWidth,
- windowHeight) display:YES animate:
YES
];
+ windowHeight) display:YES animate:
shouldAnimate
];
[[[self contentView] subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
[[[self contentView] subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
@@
-182,9
+184,10
@@
((SW_PAD / divisor) + ((contentHeight - imageHeight) / 2)),
imageWidth,
imageHeight );
((SW_PAD / divisor) + ((contentHeight - imageHeight) / 2)),
imageWidth,
imageHeight );
- imageView = [[[
NS
ImageView alloc] initWithFrame:imageRect] autorelease];
+ imageView = [[[
IT
ImageView alloc] initWithFrame:imageRect] autorelease];
[imageView setAutoresizingMask:(NSViewMinYMargin | NSViewMaxYMargin)];
[imageView setImage:_image];
[imageView setAutoresizingMask:(NSViewMinYMargin | NSViewMaxYMargin)];
[imageView setImage:_image];
+ [imageView setCastsShadow:YES];
[[self contentView] addSubview:imageView];
return NSMakeRect( ((SW_PAD / divisor) + imageWidth + (SW_SPACE / divisor)),
[[self contentView] addSubview:imageView];
return NSMakeRect( ((SW_PAD / divisor) + imageWidth + (SW_SPACE / divisor)),