Skip to content

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

Merged

Conversation

glenna
Copy link
Contributor

@glenna glenna commented Sep 9, 2017

Per Apple docs, addObserver and post use NSNotification.Name

@ianpartridge
Copy link
Contributor

According to https://developer.apple.com/documentation/foundation/notificationcenter/1407263-removeobserver it should be NSNotification.Name?

@glenna
Copy link
Contributor Author

glenna commented Sep 9, 2017 via email

@ianpartridge
Copy link
Contributor

It would be great to fix up these incompatibilities. Do you want to do that in this PR? Or should we close it?

@glenna
Copy link
Contributor Author

glenna commented Sep 11, 2017

Just to clarify, you mean to change them both back to NSNotificaiton.Name to match the docs?

@ianpartridge
Copy link
Contributor

Yes. It looks like post() is wrong too.

@glenna glenna force-pushed the fix/nsnotification_to_notification branch from 4b88061 to a47cc7e Compare September 25, 2017 20:44
@spevans
Copy link
Contributor

spevans commented Sep 25, 2017

@swift-ci please test

@glenna
Copy link
Contributor Author

glenna commented Sep 25, 2017

@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

@glenna glenna changed the title SR-3610 NotificationCenter uses Notification.Name instead of NS verison NotificaitonCenter should us NSNotification.Name per docs Sep 25, 2017
@ianpartridge ianpartridge changed the title NotificaitonCenter should us NSNotification.Name per docs NotificationCenter should us NSNotification.Name per docs Sep 26, 2017
@ianpartridge ianpartridge merged commit 0df8945 into swiftlang:master Sep 26, 2017
@ianpartridge
Copy link
Contributor

Thanks!

ianpartridge pushed a commit to ianpartridge/swift-corelibs-foundation that referenced this pull request Oct 9, 2017
…#1208)

NotificationCenter should use NSNotification.Name per docs
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.

3 participants