Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 343097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:51:56+00:00 2026-05-12T10:51:56+00:00

I have a library written in C that I would like to use in

  • 0

I have a library written in C that I would like to use in an Objective-C app, either on the Mac or the iPhone.

Unfortunately, since this library is being written by individuals in the open source space, the documentation is quite sparse and incomplete. While I can figure out how to use the stuff in the library, I don’t really have an overview of the entire code base.

What I would like to do is wrap the library up into some easily usable and transferrable classes in Objective-C.

  • Does anyone have any tips on how to approach this?
  • Any advice on the best way to get a visual hierarchy of how the library is structured?
  • How would I go about deciding how to best structure the wrapper for reusability and ease of use?

Any and all help will be greatly appreciated, thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:51:56+00:00Added an answer on May 12, 2026 at 10:51 am

    I’ve done this a few times myself. This can be fun — it’s your chance to fix (or at least hide) bad code!

    You can use Doxygen to get a visual hierarchy of the code (although I’ve only used it for C++ libraries, it also works with C), or any of the other free tools out there.

    Don’t structure your wrapper class like the underlying library if the library isn’t designed or documented well. This is your chance to consider the point of view of the user and how they are going to be using the code. Write your test cases first to figure that out, and/or talk to some people who use the library already.

    Two nice design patterns that match up with what you’re doing are Adapter and Facade.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to use an open source library that's written in Java to
I would like to ask that if I have a project written in C
i have written a library with some classes that make use of qt object
I have a file (an xmlrpc library for PHP) that I would like to
I have an objc program and i would like to use a widget that
I have a date picker library written for MooTools that I want to port
I have a common comms library that i have written to communicate with our
I have a library written in C++, and a wrapper for this library written
I have a dynamic linked library written in C# 3.0. This library has a
I have written a game engine in C++, however I would like to package

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.