Skip to content

Commit

Permalink
Update for new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoqa committed Dec 18, 2016
1 parent 653b897 commit a79dd58
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Focusin/Tasks/TasksViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,33 +61,33 @@ class TasksViewController: NSViewController {


@IBAction func task1Set(_ sender: AnyObject) {
PlistManager.sharedInstance.saveValue(t1.stringValue, forKey: TaskKeys.task1)
PlistManager.sharedInstance.saveValue(t1.stringValue as AnyObject, forKey: TaskKeys.task1)
}

@IBAction func task2Set(_ sender: AnyObject) {
PlistManager.sharedInstance.saveValue(t2.stringValue, forKey: TaskKeys.task2)
PlistManager.sharedInstance.saveValue(t2.stringValue as AnyObject, forKey: TaskKeys.task2)
}

@IBAction func task3Set(_ sender: AnyObject) {
PlistManager.sharedInstance.saveValue(t3.stringValue, forKey: TaskKeys.task3)
PlistManager.sharedInstance.saveValue(t3.stringValue as AnyObject, forKey: TaskKeys.task3)
}

@IBAction func task1SetStatus(_ sender: AnyObject) {
task1state = !task1state
toggleButton(t1s, status: task1state)
PlistManager.sharedInstance.saveValue(task1state, forKey: TaskKeys.task1state)
PlistManager.sharedInstance.saveValue(task1state as AnyObject, forKey: TaskKeys.task1state)
}

@IBAction func task2SetStatus(_ sender: AnyObject) {
task2state = !task2state
toggleButton(t2s, status: task2state)
PlistManager.sharedInstance.saveValue(task2state, forKey: TaskKeys.task2state)
PlistManager.sharedInstance.saveValue(task2state as AnyObject, forKey: TaskKeys.task2state)
}

@IBAction func task3SetStatus(_ sender: AnyObject) {
task3state = !task3state
toggleButton(t3s, status: task3state)
PlistManager.sharedInstance.saveValue(task3state, forKey: TaskKeys.task3state)
PlistManager.sharedInstance.saveValue(task3state as AnyObject, forKey: TaskKeys.task3state)
}

/* Toggle the state of a button */
Expand Down

0 comments on commit a79dd58

Please sign in to comment.