I'm trying to create a Cocoa app that needs to target Mac OS X 10.5. I create a new Cocoa app and it auto-generates the first form for me.
If I build, it'll work well, until I change my base SDK to 10.5, at which point the build fails with a "Cannot find protocol declaration for NSApplicationDelegate."
Now, I know that NSApplicationDelegate was a 10.6 feature. I've searched and found others who simply say to remove the NSApplicationDelegate protocol. I do that and it will build and run, but I can't get the app to exit. If I click the red button to close the window, it closes but the dock icon remains.
I suspect it has something to do with the form not getting/handling the exit event; however, I'm new at Xcode so I'm not sure what the window code should look like and finding sample source for 10.5 has proven tricky.
Can anyone help me? Thanks in advance.