Objective-C
Objective-C adds Smalltalk-style messaging on top of C. For decades it was the main language for developing on Mac, iPhone and iPad, before Swift arrived. It's still present in legacy codebases and Apple frameworks.
- Creado por Brad Cox & Tom Love
- Año 1984
- Paradigma: Object-oriented · compiled
- Extensiones: .m, .mm, .h
Para qué se usa
- Legacy iOS apps
- macOS apps
- Apple frameworks
A favor
- Mature and proven
- Interops with C
- Dynamic at runtime
En contra
- Quirky syntax
- Replaced by Swift
- Verbose
Ecosistema
- Cocoa
- UIKit
- Foundation
- Xcode
- CocoaPods
Ejemplo
#import <Foundation/Foundation.h>
int main() {
NSLog(@"¡Hola, mundo!");
return 0;
}