"//Add yourself as an observer" portion throws error


#1

I don’t understand why the follow code is throwing and error, even if I copy and paste it out of the code samples.

// Add yourself as an observer
[nc addObserver:self
selector:@selector(orientationChanged:)
name:UIDeviceOrientationDidChangeNotification
object:device];

I’ve spent quit a bit of time trying to figure this out. The Intellisense in xCode seems to disagree with this as well. What further confuses me is that it works in the old project. I just simply don’t get it. I’m wondering if the code base has changed or something.