I just got the brown cocoa book (great book btw, highly recommended!).
I have a main prog that I wrote in c++ a while ago. Basically there are three files..
myObject.h
myObject.cpp
myApp.cpp
all myApp does is make an instance off the Object and call some of its functions.
int main (void)
{
MyObject obj;
obj.func1();
obj.func2();
return 0;
}
For practice I wanted to put a gui ontop of this program.
I figured I could make a window with buttons and have each button call one of the functions.
Since this has to be in obj-c i made an object with two functions and I was going to have them turn around and call my c++ functions.
How do I include myObject.h in an obj-c file? I tried #include and got errors.
sorry if this is easy, i'm new to obj-c.
Thanks!