seniorObjective-C
How does Objective-C handle selector uniqueness at runtime?
Updated May 17, 2026
Short answer
Selectors are unique string-based identifiers interned by runtime.
Deep explanation
Each selector is stored once in runtime selector table. Even identical string-based selectors share same SEL pointer. This enables fast comparison using pointer equality instead of string comparison.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro