DevPrep

All topics › Objective-C

Tell us about the Objective-C runtime.

Senior PRO

What the runtime is

The Objective-C runtime is a C library (libobjc, headers <objc/runtime.h>, <objc/message.h>) that implements the language's object model at execution time: classes, objects, selectors, message sending. The compiler translates the [obj msg] syntax into runtime function calls, and all "which code runs" decisions are postponed until launch. That is what the "dynamism" of Obj-C means.

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store