How does Objective-C handle binary linking of categories at runtime?

Updated May 17, 2026

Short answer

Categories are loaded by dyld and merged into class method lists at runtime.

Deep explanation

During binary loading, dyld registers category methods and appends them to existing class method lists. There is no compile-time merging. This dynamic injection enables extending system classes but can cause method collisions.

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 →