Skip to content

Conversation

@p-x9
Copy link
Owner

@p-x9 p-x9 commented Jan 21, 2023

SCFNotificationCenter
            .addObserver(center: .darwinNotify,
                         observer: self,
                         name: .init("darwin" as CFString),
                         suspensionBehavior: .deliverImmediately) { center, `self`, name, object, userInfo in
                print(center, name, object, userInfo)
            }

SCFNotificationCenter.darwinNotify
            .addObserver(observer: self,
                         name: .init("darwin" as CFString),
                         suspensionBehavior: .deliverImmediately) { center, `self`, name, object, userInfo in
                self?.show()
                print(center, name, object, userInfo)
            }

@p-x9 p-x9 merged commit 87776ae into main Jan 21, 2023
@p-x9 p-x9 deleted the feature/syntax-sugar branch January 21, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants