Integrating a C command line tool into Objective-C application
Integrating a C command line tool into Objective-C application
- Subject: Integrating a C command line tool into Objective-C application
- From: Jason Wiggins <email@hidden>
- Date: Sat, 8 Sep 2007 17:08:09 +1000
Hello everyone,
Firstly I'd like to say that I've learnt a lot from reading the
discussions over the past year or so and it's helped me with my coding
and general mind set for coding in obj-c. Thanks everyone!
Now my question. I've read through the documentation and also done
google searches but I am yet to find *exactly* what I'm looking for to
help me. A colleague wrote a command line tool in C a while back and
now I want to integrate that tool into my obj-c code. I'm not sure how
to go about this. I started coding on obj-c about a year ago on and
off and haven't coded in C before, but looking through some books I
have a general idea in that area. The problem is the integration, ie
the Main function etc. Do I make the C code a new class and strip out
the main function? I tried using that code verbatim (minus Main) and
tried to turn it all into a method but the compiler said I can't have
nested functions. If anybody can help in this area, I would be most
appreciative.
Regards,
Jason Wiggins
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden