Created
December 3, 2015 22:50
-
-
Save ziyang0621/a2ccd968b26eea6a05cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
class ViewController: NSViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view. | |
Firebase.defaultConfig().persistenceEnabled = true | |
let ref = Firebase(url: "https://<YOUR_NAME_SPACE>.firebaseio.com/") | |
ref.setValue("new-OSX") { (error, firebase) -> Void in | |
print("call back") | |
} | |
} | |
override var representedObject: AnyObject? { | |
didSet { | |
// Update the view, if already loaded. | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment