quick fix for last commit

This commit is contained in:
Mitchell Livingston 2006-11-13 17:32:49 +00:00
parent f212862a17
commit c6f4df3195
4 changed files with 3 additions and 5 deletions

View File

@ -69,8 +69,7 @@
- (void) updateBadgeWithCompleted: (int) completed uploadRate: (float) uploadRate downloadRate: (float) downloadRate - (void) updateBadgeWithCompleted: (int) completed uploadRate: (float) uploadRate downloadRate: (float) downloadRate
{ {
NSImage * dockIcon; NSImage * dockIcon = nil;
NSSize iconSize = [fDockIcon size];
//set completed badge to top right //set completed badge to top right
if (completed > 0) if (completed > 0)
@ -78,6 +77,7 @@
dockIcon = [fDockIcon copy]; dockIcon = [fDockIcon copy];
NSRect badgeRect; NSRect badgeRect;
NSSize iconSize = [dockIcon size];
badgeRect.size = [fBadge size]; badgeRect.size = [fBadge size];
badgeRect.origin.x = iconSize.width - badgeRect.size.width; badgeRect.origin.x = iconSize.width - badgeRect.size.width;
badgeRect.origin.y = iconSize.height - badgeRect.size.height; badgeRect.origin.y = iconSize.height - badgeRect.size.height;

View File

@ -461,7 +461,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
- (void) handleOpenContentsEvent: (NSAppleEventDescriptor *) event replyEvent: (NSAppleEventDescriptor *) replyEvent - (void) handleOpenContentsEvent: (NSAppleEventDescriptor *) event replyEvent: (NSAppleEventDescriptor *) replyEvent
{ {
NSString * urlString; NSString * urlString = nil;
NSAppleEventDescriptor * directObject = [event paramDescriptorForKeyword: keyDirectObject]; NSAppleEventDescriptor * directObject = [event paramDescriptorForKeyword: keyDirectObject];
if ([directObject descriptorType] == typeAEList) if ([directObject descriptorType] == typeAEList)

View File

@ -32,5 +32,4 @@
return icon; return icon;
} }
@end @end

View File

@ -18,5 +18,4 @@
return value == nil ? nil : [value lastPathComponent]; return value == nil ? nil : [value lastPathComponent];
} }
@end @end