# Objective-C

> The old way to code Apple apps, from before Swift. It is built on C.

**Field:** Software Development  
**Category:** Languages  
**Also known as:** ObjC, Objective C, Obj-C

## Think of it like

It is like an old map of a town. Most people now use the new one.

## Definition

Objective-C is a language that adds objects and messages to C. For many years it was the main language for Apple's Mac and iPhone apps. In 2014, Apple brought out Swift as the newer choice. Many older apps and Apple's own tools still hold Objective-C code. Swift and Objective-C can work side by side in one app.

## Example

Emma joins a team with a ten-year-old iPhone app. Half of it is Objective-C, and new screens are written in Swift.

## Example code

```objectivec
NSString *name = @"Lucy";
NSLog(@"Hello, %@", name);
```

Objective-C marks its strings with @ and prints with NSLog.

## Why it matters

Lots of working Apple code is in it. Someone has to read and fix that code.

## Common mistake

Starting a new Apple app in it. Swift is the default now, and most new guides use it.

## Three principles

- **C plus objects.** Built on top of C.
- **Apple's older choice.** Before Swift.
- **Mixes with Swift.** Both work in one app.

## Related terms

- [Swift](https://learn.benibix.com/term/development/swift)
- [C](https://learn.benibix.com/term/development/c-language)
- [Object-Oriented Programming (OOP)](https://learn.benibix.com/term/development/object-oriented-programming)
- [Kotlin](https://learn.benibix.com/term/development/kotlin)

## Taught in

- [Swift, Kotlin and Dart](https://learn.benibix.com/learn/development-languages/swift-kotlin-and-dart): Programming Languages, 9/12

![Four labelled shelves of languages. Data science: R, MATLAB and Julia, beside a small bar chart. Functional: Haskell, Scala, Elixir, beside an arrow that turns a list into a new list. Shell and scripting: shell script, PowerShell, Perl and Lua, beside a terminal prompt. Close to the hardware: assembly language and Objective-C, beside a chip and a phone.](https://learn.benibix.com/diagrams/dev4-language-families.svg)

---

Source: https://learn.benibix.com/term/development/objective-c
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
