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

  • SEARCH
  • Home
  • 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 182167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:53:31+00:00 2026-05-11T14:53:31+00:00

At the risk of oversimplifying something I’m worried might be ridiculously complex, what should

  • 0

At the risk of oversimplifying something I’m worried might be ridiculously complex, what should I be aware of when mixing C and Objective-C?

Edit: Just to clarify, I’ve never worked with C before, and I’m learning Objective-C through Cocoa. Also I’m using the Chipmunk Dynamics engine, which is C.

  • 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. 2026-05-11T14:53:32+00:00Added an answer on May 11, 2026 at 2:53 pm

    I’d put it the other way around: you might be risking overcomplicating something that is ridiculously simple 🙂

    Ok, I’m being a bit glib. As others are pointing out, Objective-C is really just a minimal set of language extensions to C. When you are writing Objective-C code, you are actually writing C. You can even access the internal machinations of the Objective-C runtime support using some handy C functions that are part of the language (no… I don’t recommend you actually DO this unless you really know what you’re doing).

    About the only time I’ve ever had mildly tricky moments is when I wanted to pass an Objective-C instance method as a callback to a C function. Say, for example, I’m using a pure-C cross platform library that has functions which accept a callback. I might call the function from within an object instance to process some data, and then want that C function to call my instance BACK when its done, or as part of getting additional input etc etc (a common paradigm in C). This can be done with funky function wrapping, and some other creative methods I’ve seen, and if you ever need to do it googling ‘objective-c method for c callback’ or something like that will give you the goods.

    The only other word of advice is to make sure your objects appropriately manage any manually malloced memory that they create for use by C functions. You’ll want your objective-c classes to tidy up that memory on dealloc if, indeed, it is finished.

    Other than that, dust off any reference on C and have fun!

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

Sidebar

Related Questions

It started as a curiosity but it might get the risk to get philosophical.
Just curious - is there any risk in using a public/private key obtained from
Just wondering if there is any risk that I could prematurely share a website
Now before At the risk of getting this subject closed I just need to
I believe the newest style of Flash-based advertisements might be a security risk. Have
I know this poses a security risk, but I was just wondering out of
Is there a risk in using @Html.Raw ? It seems to me there shouldn't
At the risk of sounding foolish, in a scenario where large data fields need
Is there any security risk of injection in the following PHP script? <?php $empfaenger_1
i have 3 Array X,Y,Risk. i added a list generic (listtraining). if i click

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.