Skip to content

Commit

Permalink
Use imageNamed:NSImageNameApplicationIcon as generic name for app ico…
Browse files Browse the repository at this point in the history
…n. Copy image so that we can modify its size without any other potential clients being messed up.
  • Loading branch information
Dan Wood committed Sep 18, 2012
1 parent e9a170e commit 07ae624
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UKDockProgressIndicator.m
Expand Up @@ -140,7 +140,8 @@ -(void) updateDockTile
static NSImage *sApplicationIconImage = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sApplicationIconImage = [NSImage imageNamed:@"AppIcon"];
sApplicationIconImage = [[NSImage imageNamed:NSImageNameApplicationIcon] copy];
// Copy so that we can adjust size without affecting other clients of this image.
[sApplicationIconImage setSize:NSMakeSize(256,256)];
});
// App icon:
Expand Down

0 comments on commit 07ae624

Please sign in to comment.