Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
CoreFoundation.framework: Difference between revisions - iPhone Development Wiki

CoreFoundation.framework: Difference between revisions

From iPhone Development Wiki
(Created page with '{{infobox Framework | since = 1.0 | classID = CF }} '''CoreFoundation''' is a cross-platform C-based API that provides reference-counted data structures, IPC facilities, run loo…')
 
No edit summary
Line 5: Line 5:


'''CoreFoundation''' is a cross-platform C-based API that provides reference-counted data structures, IPC facilities, run loops, etc. A subset of it is open-sourced as "CF-Lite".
'''CoreFoundation''' is a cross-platform C-based API that provides reference-counted data structures, IPC facilities, run loops, etc. A subset of it is open-sourced as "CF-Lite".
This framework also provides some crucial Objective-C classes such as NSObject, NSString, NSArray, etc.
== Environment variables ==
Application built with CoreFoundation will recognize the following environment variables
{| class="wikitable"
|-
! Name !! Purpose
|-
| NSZombieEnabled<ref>http://www.cocoadev.com/index.pl?NSZombieEnabled</ref><br />NSDeallocateZombies<br />CFZombieLevel<ref>http://www.cocoadev.com/index.pl?CFZombie</ref> || Use "zombies" for easier detection on misusing deallocated objects.
|-
| __CF_DEBUG_EXPANDED_SET<br />CFCharacterSetCheckForExpandedSet || Enable check for expanded character sets. When an expanded set is detected, a message "An expanded CFMutableCharacter has been detected.  Recommend to compact with CFCharacterSetCreateCopy" will be printed.
|-
| CFBundleUseDYLD || Use low-level <tt>dyld(3)</tt> functions instead of <tt>dlopen(3)</tt>/etc. to check if a bundle is loaded or not.
|-
| CFProcessPath || Manually set the process path.
|-
| OAKeepAllocationStatistics<ref>http://gcc.gnu.org/ml/gcc/2002-08/msg01225.html</ref> || ?
|-
| CFBundleDisableStringsSharing || Do not share <tt>.strings</tt> files. (?)
|-
| CFPropertyListAllowImmutableCollections || Force collections (array, dictionary) parsed from property lists to be immutable.
|-
| USER<br />HOME<br />PATH<br />DYLD_IMAGE_SUFFIX || Various CF functions depend on these info.
|-
| CFFIXED_USER_HOME || Manually set the home directory.
|-
| CFUUIDVersionNumber<ref>http://www.monen.nl/DevDoc/releasenotes/CoreFoundation/RN-CoreFoundation/index.html#//apple_ref/doc/uid/TP40000994-DontLinkElementID_4</ref> || UUID version to use. Only supports 1 or 4.
|-
| CFLOG_FORCE_STDERR || Stream error from [[CFLog]] to stderr too.
|-
| TZFILE<br />TZ || Timezone info.
|-
| CFNETWORK_LIBRARY_PATH || Manually set the path of the CFNetwork binary.
|}
== References ==
<references />


{{Navbox Classes}}
{{Navbox Classes}}
{{Navbox Frameworks}}
{{Navbox Frameworks}}

Revision as of 17:48, 28 November 2009

CoreFoundation.framework
Public Framework
Availabile 1.0 – present
Class Prefix CF
Headers [headers.cynder.me]


CoreFoundation is a cross-platform C-based API that provides reference-counted data structures, IPC facilities, run loops, etc. A subset of it is open-sourced as "CF-Lite".

This framework also provides some crucial Objective-C classes such as NSObject, NSString, NSArray, etc.

Environment variables

Application built with CoreFoundation will recognize the following environment variables

Name Purpose
NSZombieEnabled[1]
NSDeallocateZombies
CFZombieLevel[2]
Use "zombies" for easier detection on misusing deallocated objects.
__CF_DEBUG_EXPANDED_SET
CFCharacterSetCheckForExpandedSet
Enable check for expanded character sets. When an expanded set is detected, a message "An expanded CFMutableCharacter has been detected. Recommend to compact with CFCharacterSetCreateCopy" will be printed.
CFBundleUseDYLD Use low-level dyld(3) functions instead of dlopen(3)/etc. to check if a bundle is loaded or not.
CFProcessPath Manually set the process path.
OAKeepAllocationStatistics[3] ?
CFBundleDisableStringsSharing Do not share .strings files. (?)
CFPropertyListAllowImmutableCollections Force collections (array, dictionary) parsed from property lists to be immutable.
USER
HOME
PATH
DYLD_IMAGE_SUFFIX
Various CF functions depend on these info.
CFFIXED_USER_HOME Manually set the home directory.
CFUUIDVersionNumber[4] UUID version to use. Only supports 1 or 4.
CFLOG_FORCE_STDERR Stream error from CFLog to stderr too.
TZFILE
TZ
Timezone info.
CFNETWORK_LIBRARY_PATH Manually set the path of the CFNetwork binary.

References