ios - Difference between CFString and NSString? -


this question has answer here:

i not getting differences between cfstring , nsstring in ios. can suggest links or proper answers this. in advance.

nsstring foundation counterpart of cfstring. means have same memory layout in memory.

the reason behind architecture historical , goes "collision" between nextstep , macos 9.

thanks toll-free bridging mechanism many cf objects have interchangeable ns counterpart (other examples cfarray/nsarray, cfdata/nsdata, ...) practical point of can think of them same thing.

here's nice write-up on topic: http://ridiculousfish.com/blog/posts/bridge.html

as goodie here's answer on how perform bridging in arc environments: nsstring cfstringref , cfstringref nsstring in arc?


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -