Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozi committed Dec 22, 2014
1 parent 0ca13e4 commit 7e669eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions Awake/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
NSStatusItem *statusItem;
StatusItemView *statusView;
PreferencesController *preferencesController;

// AboutController *aboutController;
// AboutController *aboutController;
}

@property (assign) IBOutlet NSWindow *window;
Expand Down
8 changes: 4 additions & 4 deletions Awake/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ -(void)awakeFromNib
// [statusView setImage: [NSImage imageNamed:@"MenuIcon"]];
[self iconInactive];
[statusView setAlternateImage: [NSImage imageNamed:@"MenuIconSelected"]];

[statusView setLeftAction: @selector(clickStatusItem:)];
[statusView setRightAction: @selector(rightClickStatusItem:)];
NSLog(@"%hhd", [_awakeManager isSleepOff]);
Expand Down Expand Up @@ -71,13 +71,13 @@ -(void) rightClickStatusItem:(NSEvent *)theEvent {
NSTimeInterval interval = [[[_awakeManager timer] fireDate] timeIntervalSinceNow];
NSUInteger seconds = (NSUInteger)round(interval);
intervalStr = [NSString stringWithFormat:@"%02lu:%02lu:%02lu",
seconds / 3600, (seconds / 60) % 60, seconds % 60];
seconds / 3600, (seconds / 60) % 60, seconds % 60];
}

[[statusMenu itemAtIndex: 0] setTitle: intervalStr];
}

-(IBAction)awakeForWhile:(id)sender
-(IBAction) awakeForWhile: (id)sender
{
NSInteger minutes = [sender tag];
[_awakeManager turnOn: minutes * 60];
Expand Down

0 comments on commit 7e669eb

Please sign in to comment.