-
Notifications
You must be signed in to change notification settings - Fork 1.1k
NotificationCenter should us NSNotification.Name per docs #1208
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
NotificationCenter should us NSNotification.Name per docs #1208
Conversation
According to https://developer.apple.com/documentation/foundation/notificationcenter/1407263-removeobserver it should be |
addObserver(...) says the same in docs, but in source it’s using `Notification.Name` (not that that makes this PR correct)
https://developer.apple.com/documentation/foundation/notificationcenter/1411723-addobserver
…Sent from my iPhone
On 9. Sep 2017, at 18:51, Ian Partridge ***@***.***> wrote:
According to https://developer.apple.com/documentation/foundation/notificationcenter/1407263-removeobserver it should be NSNotification.Name?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It would be great to fix up these incompatibilities. Do you want to do that in this PR? Or should we close it? |
Just to clarify, you mean to change them both back to |
Yes. It looks like |
4b88061
to
a47cc7e
Compare
@swift-ci please test |
@ianpartridge got a bit busy, but it's done now. i'll edit the PR title/description so the merge commit will have a relevant message |
Thanks! |
…#1208) NotificationCenter should use NSNotification.Name per docs
Per Apple docs,
addObserver
andpost
useNSNotification.Name