01
nil vs NULL vs NSNull in Objective-C: The Difference
Objective-CFundamentalsMemory
nil is a null object pointer, Nil a null class, NULL a null C pointer, and NSNull a placeholder object for collections. Here's when to use each one.
READ_ARTICLE
// 5 articles available
nil is a null object pointer, Nil a null class, NULL a null C pointer, and NSNull a placeholder object for collections. Here's when to use each one.
Before Swift closures, Objective-C had blocks. The syntax is different, but the power is the same. Here's how to use them effectively.
Every Objective-C class inherits from NSObject (usually). Here's what NSObject provides and why it matters for every object you create.
Both let you add methods to classes, but categories and class extensions serve different purposes. Here's when to use each.
Unlike C++ virtual methods, Objective-C uses dynamic message passing. Understanding this mechanism unlocks the language's full power.