Tag

Message Dispatch

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Mar 16, 2022 · Mobile Development

Exploring the OC Message Sending Mechanism

This article provides an in‑depth analysis of Objective‑C's runtime message‑sending process, covering the roles of objc_msgSend, method caching, dynamic method resolution, and message forwarding, with detailed code examples and assembly snippets to illustrate each step.

Dynamic Method ResolutionMessage DispatchMessage Forwarding
0 likes · 26 min read
Exploring the OC Message Sending Mechanism
Sohu Tech Products
Sohu Tech Products
Jan 15, 2020 · Mobile Development

Understanding Swift Thunk Functions and SIL: Why UITableViewDelegate Methods May Not Be Invoked

This article examines a real iOS project case where a UITableView delegate method does not fire, explores Swift Intermediate Language (SIL) and thunk functions, explains the role of @objc and dynamic dispatch, and demonstrates how generic base classes affect Objective‑C visibility of delegate methods.

Message DispatchObjective-CSIL
0 likes · 16 min read
Understanding Swift Thunk Functions and SIL: Why UITableViewDelegate Methods May Not Be Invoked