Update for swift 3.

- Convert code to swift 3
- Update alamofire to 4.0.1 for swift 3.
This commit is contained in:
Charlie Qiu
2016-10-02 01:17:07 +08:00
parent 7076523cbd
commit 7a7249b80f
41 changed files with 6976 additions and 4963 deletions
@@ -19,9 +19,9 @@ class AdvPreferencesWindowController: NSWindowController, NSWindowDelegate {
//------------------------------------------------------------
// NSWindowDelegate
func windowWillClose(notification: NSNotification) {
NSNotificationCenter.defaultCenter()
.postNotificationName(NOTIFY_ADV_CONF_CHANGED, object: nil)
func windowWillClose(_ notification: Notification) {
NotificationCenter.default
.post(name: Notification.Name(rawValue: NOTIFY_ADV_CONF_CHANGED), object: nil)
}
}