Skip to content

Commit

Permalink
Update names
Browse files Browse the repository at this point in the history
  • Loading branch information
mfclarke-cnx committed Feb 6, 2024
1 parent 94bdc35 commit 3ae479b
Show file tree
Hide file tree
Showing 3 changed files with 835 additions and 9 deletions.
6 changes: 3 additions & 3 deletions PostHog/PostHogSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -696,16 +696,16 @@ private let sessionChangeThreshold: TimeInterval = 60 * 30
object: nil)
#elseif os(macOS)
defaultCenter.addObserver(self,
selector: #selector(handleAppOpened),
selector: #selector(handleAppDidFinishLaunching),
name: NSApplication.didFinishLaunchingNotification,
object: nil)
// macOS does not have didEnterBackgroundNotification, so we use didResignActiveNotification
defaultCenter.addObserver(self,
selector: #selector(captureAppBackgrounded),
selector: #selector(handleAppDidEnterBackground),
name: NSApplication.didResignActiveNotification,
object: nil)
defaultCenter.addObserver(self,
selector: #selector(handleAppOpened),
selector: #selector(handleAppDidBecomeActive),
name: NSApplication.didBecomeActiveNotification,
object: nil)
#endif
Expand Down
Loading

0 comments on commit 3ae479b

Please sign in to comment.