Skip to content

Commit 34add47

Browse files
committed
Update to Swift 2
1 parent 4114378 commit 34add47

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Src/SwiftyTimer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ extension NSTimer {
8080
/// By default, the timer is scheduled on the current run loop for the default mode.
8181
/// Specify `runLoop` or `modes` to override these defaults.
8282

83-
public func start(runLoop: NSRunLoop = NSRunLoop.currentRunLoop(), modes: String...) {
83+
public func start(runLoop runLoop: NSRunLoop = NSRunLoop.currentRunLoop(), modes: String...) {
8484
let modes = modes.count != 0 ? modes : [NSDefaultRunLoopMode]
8585

8686
for mode in modes {

Tests/SwiftyTimerTests.xcodeproj/project.pbxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
6EE9C14B1B00BB5B00D6B91C /* Project object */ = {
9090
isa = PBXProject;
9191
attributes = {
92+
LastSwiftUpdateCheck = 0700;
9293
LastUpgradeCheck = 0640;
9394
TargetAttributes = {
9495
6EE9C1521B00BB5B00D6B91C = {

Tests/SwiftyTimerTests/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ class AppDelegate: NSObject, NSApplicationDelegate {
7070
self.test7()
7171
}
7272

73-
timer.start(modes: NSDefaultRunLoopMode, NSEventTrackingRunLoopMode, runLoop: NSRunLoop.currentRunLoop())
73+
timer.start(runLoop: NSRunLoop.currentRunLoop(), modes: NSDefaultRunLoopMode, NSEventTrackingRunLoopMode)
7474
}
7575

7676
func test7() {
7777
NSTimer.after(0.1.seconds, done)
7878
}
7979

8080
func done() {
81-
println("All tests passed")
81+
print("All tests passed")
8282
app.terminate(self)
8383
}
8484
}

0 commit comments

Comments
 (0)