CF prefix in Mac
What does it means CF-prefix in Mac OS X classes? e.g. CFS开发者_如何学运维tring, CFNumber, CFBoolean and CFDate.
CF stands for "Core Foundation".
Here's some more information from an article on Wikipedia:
Core Foundation (also called CF) is a C application programming interface (API) in Mac OS X, and is a mix of low-level routines and wrapper functions. Apple releases most of it as an open source project called CF-Lite that can be used to write cross-platform applications for Mac OS X, Linux, and Windows (via Cygwin)1; a third-party open-source implementation called OpenCFLite also exists.[2] Most Core Foundation routines follow a certain naming convention that deal with opaque objects, for example CFDictionaryRef for functions whose names begin with CFDictionary, and these objects are often reference counted (manually) through CFRetain and CFRelease. Internally, Core Foundation forms the base of the types in the Objective-C runtime as well.
Here are some useful info from Apple:
Core Foundation Framework Reference
Core Foundation Design Concepts
精彩评论