Programming Language

Objective-C

Objective-C (programminglanguage)
Full NameObjective-C
Short NameObjective-C
DescriptionObjective-C is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language
CompanyApple
WebNo
MobileYes
EnterpriseYes
EmbeddedNo
Snippet from Wikipedia: Objective-C

Objective-C is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language. Originally developed by Brad Cox and Tom Love in the early 1980s, it was selected by NeXT for its NeXTSTEP operating system. Objective-C was the standard programming language supported by Apple for developing macOS (which descended from NeXTSTEP) and iOS applications using their respective application programming interfaces (APIs), Cocoa and Cocoa Touch, until the introduction of Swift in 2014.

Objective-C programs developed for non-Apple operating systems or that are not dependent on Apple's APIs may also be compiled for any platform supported by GNU GCC or LLVM/Clang.

Objective-C source code 'messaging/implementation' program files usually have .m filename extensions, while Objective-C 'header/interface' files have .h extensions, the same as C header files. Objective-C++ files are denoted with a .mm file extension.

GitHub Topics

Objective-C builds on the foundations of ANSI C. Compared to other object-oriented languages based on C, Objective-C is very dynamic. Dynamism enables the construction of sophisticated development tools. Since Objective-C incorporates C, one gets all the benefits of C when working within Objective-C.

#import <stdio.h>

int main (int argc, const char *argv[])
{
    printf ("Hello, world!\n");
    return 0;
}

Source: Wikibooks

See also: Programming Languages

  • dev/objective-c.txt
  • Last modified: 2022/08/14 14:56
  • by Henrik Yllemo