• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Integrating a C command line tool into Objective-C application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Integrating a C command line tool into Objective-C application
      • From: PGM <email@hidden>
    • Re: Integrating a C command line tool into Objective-C application
      • From: Uli Kusterer <email@hidden>
    • Re: Integrating a C command line tool into Objective-C application
      • From: "Alexey Zakhlestin" <email@hidden>
  • Prev by Date: NSTreeController, sorry for the multiple posts!
  • Next by Date: Re: Integrating a C command line tool into Objective-C application
  • Previous by thread: Re: Setting Breakpoints in XCode - Comically slow
  • Next by thread: Re: Integrating a C command line tool into Objective-C application
  • Index(es):
    • Date
    • Thread