public
Description: A buildbot GUI for OS X
Homepage: http://code.google.com/p/buildwatch/
Clone URL: git://github.com/dustin/buildwatch.git
Search Repo:
buildwatch / MainController.m
100644 29 lines (23 sloc) 0.534 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// MainController.m
// BuildWatch
//
// Created by Dustin Sallings on 3/11/08.
// Copyright 2008 Dustin Sallings <dustin@spy.net>. All rights reserved.
//
 
#import "MainController.h"
 
 
@implementation MainController
 
-(void)updateClock:(id)sender
{
    [clock setObjectValue:[NSDate date]];
}
 
-(void)awakeFromNib {
    NSLog(@"Awake!");
    [self updateClock:self];
    [NSTimer scheduledTimerWithTimeInterval:1.0
        target:self
        selector:@selector(updateClock:)
        userInfo:nil
        repeats:YES];
}
 
@end