 
     let statusItem : NSStatusItem = NSStatusBar.systemStatusBar().statusItemWithLength(64.0)
     let dateFormatter : NSDateFormatter = NSDateFormatter()
+    let workspace : NSWorkspace = NSWorkspace.sharedWorkspace()
     
     let wImage : NSImage = NSImage(named: "mitten-w")!
     let bImage : NSImage = NSImage(named: "mitten-b")!

    var timer : NSTimer? = nil
    var startedAt : NSDate? = nil
    var currentImage : NSImage? = nil
    
    var seconds : NSTimeInterval = 60*55
    


    func onSwitchApp() {
        if(startedAt != nil) {
            currentApp = workspace.frontmostApplication
            if(currentApp != nil) {
                NSLog("--> current app: %@", currentApp!.bundleIdentifier!)
            }
        }
    }
    
