4 ms·
so 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.
by brianobush 16y ago
so 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]