Objective-C funtime - know your runtime
summary
Covers the modern Objective‑C runtime (Objective‑C 2.0) and the actual C APIs in runtime.h, showing internal layouts (object/class/meta‑class), the method cache, and the three variants of objc_msgSend. Demonstrates practical techniques: runtime introspection with method_getName/returnType, swapping implementations via method_exchangeImplementations (with the add‑then‑replace guard), creating imps from blocks, using associated objects for category storage, message forwarding/NSInvocation trampolines for higher‑order messaging like collect, and points to libextobjc and slides/sample code.
AI-written summary · about
chapters (14)
- 0:00Introduction to Objective-C runtime
- 0:26Brief history of Objective-C
- 1:09Runtime fundamentals and structures
- 3:16Message sending in Objective-C
- 6:27Message forwarding and invocation
- 7:55Runtime introspection capabilities
- 10:03Dynamic class functionality
- 11:25Method swizzling techniques
- 14:16Modifying method implementations
- 16:31Dynamic instance variables
- 17:54Higher order messaging
- 21:04LibX Objective-C library overview
- 22:31Advanced runtime use cases
- 23:35Q&A session
