Created
October 2, 2015 15:42
-
-
Save Eluss/0f6eb24632c0328db568 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
func application(application: UIApplication, handleWatchKitExtensionRequest userInfo: [NSObject : AnyObject]?, reply: ([NSObject : AnyObject]?) -> Void) { | |
let message = userInfo?["message"] as! String | |
let event = Event(name: "test", details: "test", date:NSDate()) | |
NSKeyedArchiver.setClassName("Event", forClass: Event.self) | |
NSKeyedArchiver.archivedDataWithRootObject(event) | |
let dictionary = ["event" : event] | |
reply(dictionary) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment