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
// 3 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.
Retain cycles are the most common memory leak in Objective-C. Learn how they form, how to detect them, and patterns that prevent them.
Discover how the Objective-C runtime secretly stores small strings directly in pointer values, eliminating heap allocations entirely.