4 ms·
Objective-C is C plus brackets and a recv message function. Everything else is built up on that. You can very easily use c libraries in iPhone / iPad developmen
by mattj 16y ago
Objective-C is C plus brackets and a recv message function. Everything else is built up on that. You can very easily use c libraries in iPhone / iPad development.
Maybe this is true on android, but iPhone is a great platform for c programmers.
- rbanffy 16y agoANSI C code is perfectly legal Objective-C code.
- brianobush 16y agoso I can just run my regular code in Obj-C and it should work with minimal boiler plate? I guess the barrier to iphone dev isn't as high as I was imagining.
- pyre 16y agoObjective-C is much closer to the 'just a pre-processor on top of C' idea than C++ is at this point. ANSI C is still valid, though to hook into Apple's CocoaTouch APIs I believe that you will be forced to write ObjC.
- ryanpetrich 16y agoYou can use plain C, it's just not pretty: void *result = objc_msgSend(target, sel_registerName("message:"), argument);
- rbanffy 16y agoMind you: not pretty, even for C standards ;-)
- varjag 16y agoDoes it support C99 constructs as well, or just ole' C90?
- pyre 16y agoI think so. I believe that it just converts all of the ObjC constructs into valid C. The ObjC constructs are different enough from C (being SmallTalk-inspired) that I don't think it's an issue. Take this with a grain of salt though, as I have minimal ObjC experience.
- deleted 16y ago[deleted]