Skip to content

Commit

Permalink
add option to launch activity monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
OneSadCookie committed Jul 25, 2010
1 parent de49616 commit 6d11dad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/UsageExtraAppDelegate.m
Expand Up @@ -64,6 +64,11 @@ - (void)update:(id)_
[item setTitle:[NSString stringWithFormat:@"%d%%", (int)(100.0 * (double)diffUsed / (double)diffTotal)]];
}

- (void)openActivityMonitor:(id)sender
{
[[NSWorkspace sharedWorkspace] launchAppWithBundleIdentifier:@"com.apple.ActivityMonitor" options:0 additionalEventParamDescriptor:nil launchIdentifier:NULL];
}

@synthesize menu;

@end

0 comments on commit 6d11dad

Please sign in to comment.