Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Objective-C Runtime Hacking
Search
Błażej Biesiada
July 04, 2013
Programming
1
460
Objective-C Runtime Hacking
A short introduction into Objective-C runtime programming.
Błażej Biesiada
July 04, 2013
Tweet
Share
More Decks by Błażej Biesiada
See All by Błażej Biesiada
Safer Objective-C
bejo
0
130
Other Decks in Programming
See All in Programming
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2k
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
640
AI巻き込み型コードレビューのススメ
nealle
0
110
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
300
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
440
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
170
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
130
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
2.4k
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
160
Architectural Extensions
denyspoltorak
0
270
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
The untapped power of vector embeddings
frankvandijk
1
1.6k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
770
The SEO Collaboration Effect
kristinabergwall1
0
350
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
77
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
440
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
160
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Transcript
[[ObjC runtime] hacking] Błażej Biesiada @_bejo bejo
What is Runtime? ObjC Application Assembler C
What is Runtime? ObjC Application Assembler C Runtime
APIs
APIs • NSObject methods • -class • -isKindOfClass: • etc.
...
APIs • NSObject methods • -class • -isKindOfClass: • etc.
... • Runtime functions • objc_lookUpClass • class_getName • etc. ...
Demo http://github.com/bejo/BBBRuntimeNavigator
Your own root objects NS_ROOT_CLASS @interface KRKObject { Class!isa; }
@end
So... how does KVO work?
So... how does KVO work? • objc_registerClassPair
So... how does KVO work? • objc_registerClassPair • class_setSuperclass
So... how does KVO work? • objc_registerClassPair • class_setSuperclass •
class_addMethod
Associative References
Associative References • objc_setAssociatedObject
Associative References • objc_setAssociatedObject • objc_getAssociatedObject
Associative References • objc_setAssociatedObject • objc_getAssociatedObject • Google: associative references
category
None
• Objective-C Runtime Programming Guide • Objective-C Runtime Reference •
Friday Q&A by Mike Ash
Thanks!