Update readme: notification_center methods take a string, not a class #288

Merged
merged 2 commits into from Aug 15, 2013

Projects

None yet

2 participants

@iancanderson
Contributor

These methods call addObserverForName and postNotificationName, passing in the parameter as the name in both cases, so the readme should reflect that.

See https://github.com/rubymotion/BubbleWrap/blob/master/motion/core/ns_notification_center.rb

@clayallsopp
Member

Could you keep the UIApplicationWillEnterForegroundNotification example as a constant? (it's an instance of a string, not a class)

@iancanderson
Contributor

Sure thing! I shouldn't have assumed that every constant was a class.

@iancanderson
Contributor

Bump

@clayallsopp
Member

Sweet, thanks!

@clayallsopp clayallsopp merged commit 1a801a3 into rubymotion:master Aug 15, 2013

1 check passed

default The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment