PROVIDER - the classic dynamic language of Apple platforms
Objective-C
Objective-C was designed by Brad Cox and Tom Love in the 1980s and adopted by NeXT in 1988, using message passing and a dynamic runtime to power Cocoa while categories and protocols allow non-invasive extension; it remains central to existing iOS and macOS projects, though verbosity and stale material push new work to Swift.
4.3pts
Service Overview
Objective-C was designed by Brad Cox and Tom Love in the 1980s, adopted by NeXT in 1988, and became Apple's primary language with Cocoa. It adds Smalltalk-style message passing and a dynamic runtime on top of C.
In the languages and frameworks category it represents the existing Apple stack: new projects lean on Swift, but maintaining older systems, reading third-party SDKs and bridging low-level APIs still requires it.
Key Strengths
- Dynamic power: methods resolve and can be replaced at runtime, which helps with plugins, mocks and hot-fix designs
- Non-invasive extension: categories and protocols add methods or shared interfaces to existing classes
- Mature ecosystem: Cocoa, CocoaTouch and many third-party SDKs have long exposed it as their primary interface
- Swift interop: both directions work inside one target, so migration can be incremental
- Low-level friendly: C and C++ mix directly through Objective-C++, staying close to system APIs
Product Ecosystem
Language and runtime
The Clang compiler, the Objective-C runtime and the Foundation framework form the base, with ARC handling reference counting.
Frameworks
UIKit, AppKit, Core Data, Core Animation and the SwiftUI interoperability bridges.
Tooling
Xcode, Instruments and LLDB provide compilation, profiling and debugging.
Limitations
- Verbose syntax: bracket messages and header declarations push code to roughly 1.5 times the Swift volume
- Stale material: official samples keep shifting to Swift, thinning new tutorials
- Legacy baggage: code from the manual memory management era still needs retain/release reasoning
- Modern features missing: generics and pattern matching are weak, raising maintenance cost at scale
Use Cases
- Maintaining existing iOS and macOS projects (★★★★★): many systems still centre on it
- Integrating third-party SDKs (★★★★): plenty of SDKs expose Objective-C interfaces only
- Low-level and system-level extension (★★★★): mixing with C and C++ is convenient
- Brand new app development (★★★): Swift fits better
Pricing
| Item | Price | Notes |
|---|---|---|
| Xcode and SDKs | $0 | Free download on macOS |
| Apple Developer Program | $99 per year | Needed to ship on the App Store |
| Test devices | Per model | Apple hardware required |
Language and tools are free; the cost is Apple hardware and the developer account.
FAQ
- Should new projects still use Objective-C? Swift is the default; prefer Objective-C only when SDKs expose Objective-C interfaces or when C++ mixing is required.
- Is manual release still needed with ARC? Normally not, but Core Foundation objects and retain cycles still need explicit handling.
- How does it mix with Swift? A bridging header and
@objcannotations expose interfaces in both directions, with attention to optionals and naming conversion. More mobile options are under languages and frameworks.
Code Examples
Class declaration and message send
// Shape.h
#import <Foundation/Foundation.h>
@interface Shape : NSObject
@property (nonatomic, copy) NSString *name;
- (double)area;
@end
// Shape.m
#import "Shape.h"
@implementation Shape
- (double)area {
return 0.0;
}
@end
int main(void) {
@autoreleasepool {
Shape *s = [[Shape alloc] init];
s.name = @"generic";
NSLog(@"%@ area=%.2f", s.name, [s area]);
}
return 0;
}
@interface declares the public surface, [s area] sends a message, and @autoreleasepool manages temporary object lifetimes.
Extending a class with a category
#import "Shape.h"
@interface Shape (Describe)
- (NSString *)describe;
@end
@implementation Shape (Describe)
- (NSString *)describe {
return [NSString stringWithFormat:@"%@ with area %.2f", self.name, [self area]];
}
@end
A category adds methods without editing the original class, which suits splitting large implementations and adding helpers.
Community & Resources
- Objective-C runtime documentation: official runtime and language reference
- Apple Developer: SDKs, samples and platform docs
- GitHub Objective-C topic: open libraries and sample projects
- GitHub Swift topic: the modern replacement on Apple platforms
- GitHub iOS topic: the wider mobile ecosystem
Articles
- 01 GitLab CI/CD Pipeline Practices 07-18
- 02 Prometheus Monitoring and Alert Setup 07-18
- 03 Choosing Free Fonts for Commercial Use 11-25
- 04 BaaS Platform Selection and Migration Scope 11-29
- 05 What Ansible Automation Really Costs 07-18
- 06 Migrating Spring Boot 4 to Native Image 11-29
- 07 Backend Language Selection and Runtime Boundaries 11-29
- 08 Docker Single-Host Deploy: Build to TLS 07-18
- 09 Django, FastAPI, or Flask for a Python Web Project 11-29
- 10 Choosing a Node.js Backend Framework 11-29