I tried getting some obj-c code running, and I seem to have problem with that also.
Changed file type to objective-c++ source
changed stdafx.h to the format in the doc
added foundation framework to the xcode project
tried with file named main.cpp and main.mm
Code:
#define Ptr ApplePtr
#define Point ApplePoint
#define Cell AppleCell
#define Rect AppleRect
#define Button AppleButton
#define Cursor AppleCursor
#define FileInfo AppleFileInfo
#define gamma AppleGamma
#define ok AppleOk
#define require AppleRequire
#define TextStyle AppleTextStyle
// Include System Headers
#undef Ptr
#undef Point
#undef Cell
#undef Rect
#undef Button
#undef Cursor
#undef FileInfo
#undef gamma
#undef ok
#undef require
#undef TextStyle
#undef MIN
#undef MAX
#undef ABS
#undef NULL
#define NULL 0
// Include Esenthel Engine
#include <EsenthelEngine/EsenthelEngine.h>
// Include your Custom Headers
..
tried adding next to the system includes ...
#include "Foundation/Foundation.h"
#include <Foundation/Foundation.h"
#import "Foundation/Foundation.h"
#import <Foundation/Foundation.h"
all 4 gives errors.
My guess is I will be able to use iad framework if I can get this to work.
Say I want to call a simple NSLog function? How can I do this? since xcode gives me error messages about NSLog function not found.
Thanks