Here's a hint:

What does every main() function do in every iOS and Mac app?

Dave

Sent from Jane

On Nov 11, 2011, at 5:49 PM, Nathan Sims <newsli...@autonomy.caltech.edu> wrote:

> Newb question. I need to create an OS X Cocoa library that is going to be 
> called from a C program. The C program's interface will be simple, along the 
> lines of:
> 
>   retval=get_float_data(&float1,&float2);
> 
> where get_float_data() is a function that resides in the Cocoa library and 
> invokes Objc code to generate and return two float values to the caller.
> 
> I'm unclear on how to architect this. Can a C function invoke Objc methods? 
> (OSX 10.6.8, Xcode 3.2.6)
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/davedelong%40me.com
> 
> This email sent to davedel...@me.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to