ios - Difference between CFString and NSString? -
this question has answer here:
- nsstring same cfstring? 1 answer
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
Post a Comment