PDA

View Full Version : C programming with Cocoa




shipdestroyer
Sep 10, 2008, 08:51 AM
I'm working on an assignment for school that must be written in pure C. The interface, however, can be written in any language. Is it possible to use a Cocoa GUI for a C program?

Would it be easy to use the C code from within an objective-C file? I'm guessing the objective-C parts would be used for UI events, button clicks, whatever, and those would call the C functions.



robbieduncan
Sep 10, 2008, 08:52 AM
Objective-C is a strict superset of C: you can use C freely within Objective-C files.