Hey all,
Was looking through Programming in Objective-C 2.0 by Stephen Kochan although I had already done Aaron Hillegass' book i wanted to know more about objective c.
But right the question, as I was going through the book I found it tedious to code, then compile and then run, so i thought ... what if I make a simple app exactly like ZIPspector for Aaron's book (chapter 34), which takes the .m file and compiles it and runs it just as it was opened.
I've thought that this could run into a massive application but right now I would like some help as into how you would do this.
Obviously I would run an NSTask but what do I connect it to in the launch path of the task? Would it be /sbin/gcc?
Also after that bit is dealt with how would I set the arguments for the compiler? Right now I would only like it to import the Foundation.h file (keep it simple the now).
All help will be deeply appreciated as usual
.
Stephen
Was looking through Programming in Objective-C 2.0 by Stephen Kochan although I had already done Aaron Hillegass' book i wanted to know more about objective c.
But right the question, as I was going through the book I found it tedious to code, then compile and then run, so i thought ... what if I make a simple app exactly like ZIPspector for Aaron's book (chapter 34), which takes the .m file and compiles it and runs it just as it was opened.
I've thought that this could run into a massive application but right now I would like some help as into how you would do this.
Obviously I would run an NSTask but what do I connect it to in the launch path of the task? Would it be /sbin/gcc?
Also after that bit is dealt with how would I set the arguments for the compiler? Right now I would only like it to import the Foundation.h file (keep it simple the now).
All help will be deeply appreciated as usual
Stephen