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
Swift warm up NSSpecialValue
Search
Johnlin
August 07, 2018
0
54
Swift warm up NSSpecialValue
Johnlin
August 07, 2018
Tweet
Share
More Decks by Johnlin
See All by Johnlin
用 MLIR 實作 一個 Ruby IR (intermediate representation)
johnlinvc
0
140
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
260
Ruby 型別檢查工具簡介
johnlinvc
0
470
Swift Actor 實作探索
johnlinvc
0
160
用 mruby 來寫跨平台工具
johnlinvc
0
78
Actor model 簡介
johnlinvc
0
190
一起玩 Helm 3
johnlinvc
1
120
為什麼 App 卡卡的
johnlinvc
2
1.2k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
200
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
The Pragmatic Product Professional
lauravandoore
36
6.8k
RailsConf 2023
tenderlove
30
1.2k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
283
13k
The Invisible Side of Design
smashingmag
301
51k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
420
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Code Reviewing Like a Champion
maltzj
524
40k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Practical Orchestrator
shlominoach
190
11k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
The Language of Interfaces
destraynor
158
25k
Transcript
Swift ఔࣜখ NSSpecialValue John Lin
NSValue • ओཁ༗ၷݸޭೳ • ࡏ objc ཫṶଘ C తݪੜྨผ •
NSCoder ߹࡞ɼ݅Ꮣࢿྉɻ
ṶଘC తݪੜྨผ • ᙛ objc త NSArray ೳଘ NSObject త
Subclassɼෆೳଘ Int, Bool ೭ྨత • ༻ NSValue แىိ೭ޙबՄҎଘࡏNSArray ཫ • ՄҎ༻ intValue ೭ྨత C తࢿྉ፤ճိ
NSCoding • ࡏ ݅ࢿྉؒ࡞ • See Zonble's book • https://github.com/zonble/kkbox-ios-dev/tree/
master/nscoding • https://zonble.gitbooks.io/kkbox-ios-dev/content/ nscoding/index.html
NSCoding • ճၚ Any? త decoder ቮៃ deprecated ྃɼ༻ Generic
൛
ࢿྉNSValue
NSSpecialValue • NSValue త Subclass • NSPoint ೭ྨతੋ
NSSpecialValue subclass
NSPoint(CGPoint) decode
NSRange decode
NSConcreteValue • ੋ NSValue త subclass • แؚ ଖଞେ෦త objc
㚎ݐ type ɼ૾ੋ NSNumber
NSConcreteValue
NSNumber Decode
Special vs Contrete • concrete ੋޠݴ㚎ݐత • Special ੋ Foundation
త • ෆաFoundation େ෦ෆ Special • NSSpecialValueେ֓ੋաڈతҨಟ㠧
݁ • ؐੋ༻ Codable ྃ • ༗ṧෆಘቮ࠶༻ NSCoding
Q&A
፮ᐔػ • http://slot.miario.com/machines/150067