PhilipsHue / PhilipsHueSDK-iOS-OSX

The Software Development Kit for Philips Hue on iOS and OS X (beta)
579 stars 168 forks source link

Better naming convention for notifications #11

Closed renssies closed 9 years ago

renssies commented 11 years ago

The notifications posted by the PHNotificationManager are confusing when looking at the code completion.

Example: "UIApplicationDidBecomeActiveNotification" tells you directly which class or SDK it is from, what type it is and when it is posted. When you see "LOCAL_CONNECTION_NOTIFICATION" in your auto completion you don't know they're posted by the Hue SDK. A better naming would be "PHBridgeConnectionEstablishedNotification"