3 ms·
NSNumbers are generally tagged pointers, unless you’ve got a really large number.
by mercutio2 8y ago
NSNumbers are generally tagged pointers, unless you’ve got a really large number.
- deleted 8y ago[deleted]
- archagon 8y agoThis didn't help me in my app, unfortunately, because I needed to encode CGPoints as NSValues. I suppose I could have resorted to ordinary, interleaved CGFloats, but it was way easier and more productive to just use C++ vectors. I knew exactly what I was getting with those, and I didn't have to do the boxing/unboxing dance.