Building for 10.5 in Xcode 3.2 (on Snow Leopard) error?

NSApplicationDelegate is a new protocol as of 10.6 . You're getting the error (I'm guessing) because your application delegate is implementing this protocol. I'm not sure if this is the best practice on this, but you might just consider using the preprocessor to help you.

Up vote 14 down vote favorite 5 share g+ share fb share tw.

I just created a new Cocoa project on XCode 3.2. I'm running it in Snow Leopard. When I build it for 10.6 it works fine but if I change the active SDK to 10.5 I get this error: cannot find protocol declaration for 'NSApplicationDelegate' xcode osx-leopard target link|improve this question asked Sep 30 '09 at 8:34Jorge224713 48% accept rate.

NSApplicationDelegate is a new protocol as of 10.6. You're getting the error (I'm guessing) because your application delegate is implementing this protocol. I'm not sure if this is the best practice on this, but you might just consider using the preprocessor to help you: #if (MAC_OS_X_VERSION_MAX_ALLOWED #endif.

If I compile for 10.5 I'm getting same error message in xcode – Jorge Oct 1 '09 at 8:11 Ha, my bad. MAC_OS_X_VERSION_10_6 isn't defined on 10.5, so we have to keep the logic in terms of 10.5. Fixed in the answer. – nall Oct 1 '09 at 15:38 3 Thanx this worked for me.

Jorge you need to accept this answer! – Raj Mar 31 '10 at 4:40.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions