Objective-C

From Applepedia

Jump to: navigation, search

Objective-C is an object-oriented programming language used primary for developing Cocoa applications. It is a strict superset of ANSI C, which adds a few simple but powerful syntactic extensions. It uses a Smalltalk-like messaging system to call object methods, which gives it an extreme flexibilty. It is weakly typed, eliminating the need for templates such as used by C++. Through the use of constructs such as (formal and informal) protocols and categories it is highly-extensible, even at runtime.

Example Code

Hello World

#import <Foundation/Foundation.h>

  int main (int argc, const char * argv[])
  {
     NSLog(@"Hello, World!");
  }
Personal tools