| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,10 +62,18 @@ class AppDelegate: NSObject, NSApplicationDelegate { | |||
| 62 | 62 | fired = true | |
| 63 | 63 | } | |
| 64 | 64 | } | |
| 65 | - timer4.start(runLoop: NSRunLoop.currentRunLoop(), modes: NSDefaultRunLoopMode) | ||
| 65 | + timer4.start() | ||
| 66 | 66 | } | |
| 67 | - | ||
| 67 | + | ||
| 68 | 68 | func test6() { | |
| 69 | + let timer = NSTimer.new(after: 0.1.seconds) { | ||
| 70 | + self.test7() | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + timer.start(modes: NSDefaultRunLoopMode, NSEventTrackingRunLoopMode, runLoop: NSRunLoop.currentRunLoop()) | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + func test7() { | ||
| 69 | 77 | NSTimer.after(0.1.seconds, done) | |
| 70 | 78 | } | |
| 71 | 79 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments