Main Page | Report this Page
Computers Forum Index  »  Computer Languages (Objective-C)  »  Using C library in Objective C project...
Page 1 of 1    

Using C library in Objective C project...

Author Message
trickards...
Posted: Thu Jul 23, 2009 10:33 am
Guest
I am looking at some options for a project at the moment - completely
new to Obj-C. I am wanting to create a UI which will be controlled by
a pair of multitouch overlays. I am interested in developing this on
a mac using cocoa, hence the use of this language. These overlays
have c, c++ and c# versions of their API, is there any way I can use
these in Obj-C code? I'd rather not default back to coding this in c#/
WPF .NET.

Thanks
 
Pascal J. Bourguignon...
Posted: Thu Jul 23, 2009 8:59 pm
Guest
trickards <tomrickards at (no spam) gmail.com> writes:

Quote:
I am looking at some options for a project at the moment - completely
new to Obj-C. I am wanting to create a UI which will be controlled by
a pair of multitouch overlays. I am interested in developing this on
a mac using cocoa, hence the use of this language. These overlays
have c, c++ and c# versions of their API, is there any way I can use
these in Obj-C code? I'd rather not default back to coding this in c#/
WPF .NET.

The compiler provided by Apple Computer Inc, is able to compile both
C++ and Objective-C, mixed inside the same source files. (Google for
objc++).

So you could equally well use the C API as the C++ API. I'd advise you
to use the C++ API (otherwise I'd advise to write an Objective-C
wrapper around the C API).

--
__Pascal Bourguignon__
 
 
Page 1 of 1    
All times are GMT
The time now is Sat Nov 28, 2009 3:44 am