Tuesday 15 June 2010

objective c - Including C Program into OSX Application -


I am working on a Mac OSX application in Xcode 4 which reads data from programs written by someone else in C And how can I put this code into my project? Do I have to create new Objective-C files and then rewrite the C program in these ObjC files? Or can I just include the C file in the project and reference it to other files? I have tried later and it is not working, but I am sure I am doing something wrong.

Thanks

You can do this:

File in Xcode- & gt; Under the new file-> "OS X", there is an option to add to the "C and C ++" option, with a .h, .c, or .cpp file (all of which work with Objectives-C).

No comments:

Post a Comment