Object oriented framework for C.
Zlib license.
Objectively is a cross-platform framework that provides rich object-oriented semantics to enable OOP in the C programming language.
- Cross-platform support for Android, iOS, macOS, Linux and Windows
- Single-parent inheritance with starts-with struct composition
- Class and instance methods with strongly typed interfaces
- Automatic class loading and lifecycle management
- Automatic memory management with reference counting
- Unicode strings with mutlibyte character support
- Collections for Objects and C types: Array, Dictionary, List, Set and more
- Concurrency: Lock, Condition, Thread, Operation, OperationQueue
- Networking: URLSession, JSONContext & RESTClient
Objectively brings classes, single-parent inheritance, strongly typed methods and reference counting to plain C — no C++, and no code generation.
Declare a type once, then instantiate and use it like any other:
Hello *hello = $(alloc(Hello), initWithGreeting, "Hello, World!");
$(hello, sayHello);
hello = release(hello);alloc and release manage the lifecycle, $ dispatches through the type's interface, and super, method overrides and shared instances all behave exactly as you'd expect from an object oriented language.
Consult the Installation guide for dependencies, building, and linking.
Consult the User Guide to write your first Class.
Browse the API Documentation to explore the library.
- Objectively test suite provides examples for using every Objectively C type.
- ObjectivelyGPU is a framework for modern graphics built on SDL3 and Objectively.
- ObjectivelyMVC is a framework for modern game interfaces built on SDL3, Objectively and ObjectivelyGPU.
- Quetoo is a free first-person shooter that uses Objectively, ObjectivelyGPU and ObjectivelyMVC extensively.


