as they all look really interesting. Unfortunately, it looks like the Cocoa XCode projects very kindly converted by Bryan Blackburn no longer compile on more recent MacOS versions (I’m currently using 10.5.1 on a MacBook Pro).
I wonder if anyone could possibly give me some hints on getting the code to work under OS X 10.4 or 10.5? I get a number of errors with the projects I’ve tried to compile.
The first one is an error for the #import <Cocoa/Cocoa.h>
line in main.m. Apparently, this library can’t be found. I’m not sure why this should be the case, as the import command for the same library in projects I am able successfully to compile looks identical. Any ideas? I think other errors may be related to the failure to load the Cocoa library.
I’m a complete beginner when it comes to XCode and Cocoa I’m afraid, though I have done bits and pieces of coding and scripting in a number of different languages over the years. I’d love to learn a little about OpenGL on the Mac, and these tutorials seem an ideal starting-point.
Any pointers on how I might correct the include path?
I’ve tried right-clicking the libraries in the project view panel, and choosing the appropriate frameworks in /System/Library/Frameworks, but I still get the same error.
No idea. I use Visual Studio 2003 and it’s in the project properties screen.
Keep in mind that you must have proper path for compiler and for linker. Maybe you were looking in the linker options instead of compiler options?
On Windows, compiler must find all the .h source files and linker must find all the .lib binary files.
I’ve actually been in touch with the guy who translated the files for the Mac in the 1st place. Apparently, they’re REALLY old, and there may be a number of bugs preventing them working under OS X 10.5, so I think I’ll give up on them for the moment, and take a look at some of the Developer examples, to see what I can learn from those.