Reputation: 14092
So Obj C is mainly used by Apple to program Cocoa apps. But I more interested in utilizing the OOP of Obj C, I'm not trying to code Cocoa apps and am not really interested in making GUI apps with it either, I was just wondering are there two versions of Obj C? GNU and Apple? cause I was reading wikipedia, under the section "Forwarding" where objects can forward messages to other objects that can handle the message.
forwarding methods:
- (retval_t)forward:(SEL)sel args:(arglist_t)args; // with GCC
- (id)forward:(SEL)sel args:(marg_list)args; // with NeXT/Apple systems
action methods:
- (retval_t)performv:(SEL)sel args:(arglist_t)args; // with GCC
- (id)performv:(SEL)sel args:(marg_list)args; // with NeXT/Apple systems
Upvotes: 2
Views: 244
Reputation: 43472
Pretty much. Apple and GCC have diverged in their implementation of the Objective-C language, though a lot of code is still source-compatible.
Upvotes: 1