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 pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Objective-C interview questions

View all →