-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to Swift 3 #40
Changes from all commits
1d8e71f
c7df0e4
e720a02
9bf294c
16a3924
a4af7a2
d8764b1
92a40ff
a3e7741
39f8d46
ebbafc3
51eb803
f585b12
ca0909a
76bb282
92e20f7
89f4e49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,15 @@ | |
#endif | ||
|
||
#if os(OSX) | ||
public typealias Controller = NSViewController | ||
public typealias CurrentController = NSViewController | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We preserve There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had a conflict with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @zenangst oh ja, because we have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should try and fix that thing, now is probably a good idea to address it as we are already doing some breaking changes in the migration. (breaking as in having to adopt new Swift 3 syntax). |
||
|
||
func openURL(URL: NSURL) { | ||
NSWorkspace.sharedWorkspace().openURL(URL) | ||
func open(url: URL) { | ||
NSWorkspace.shared().open(url) | ||
} | ||
#else | ||
public typealias Controller = UIViewController | ||
public typealias CurrentController = UIViewController | ||
|
||
func openURL(URL: NSURL) { | ||
UIApplication.sharedApplication().openURL(URL) | ||
func open(url: URL) { | ||
UIApplication.shared.openURL(url) | ||
} | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks