This chapter describes the functions and function-like macros defined in the Foundation Framework.
For additional information about Assertions, see Assertions and Logging Programming Guide.
NSAssertNSAssert1NSAssert2NSAssert3NSAssert4NSAssert5NSCAssertNSCAssert1NSCAssert2NSCAssert3NSCAssert4NSCAssert5NSCParameterAssertNSParameterAssert
For additional information on generating strings files see “Using Strings Files for User-Facing Text” in Internationalization Programming Topics.
NSLocalizedStringNSLocalizedStringFromTableNSLocalizedStringFromTableInBundleNSLocalizedStringWithDefaultValue
NSConvertHostDoubleToSwappedNSConvertHostFloatToSwappedNSConvertSwappedDoubleToHostNSConvertSwappedFloatToHostNSHostByteOrderNSSwapBigDoubleToHostNSSwapBigFloatToHostNSSwapBigIntToHostNSSwapBigLongLongToHostNSSwapBigLongToHostNSSwapBigShortToHostNSSwapDoubleNSSwapFloatNSSwapHostDoubleToBigNSSwapHostDoubleToLittleNSSwapHostFloatToBigNSSwapHostFloatToLittleNSSwapHostIntToBigNSSwapHostIntToLittleNSSwapHostLongLongToBigNSSwapHostLongLongToLittleNSSwapHostLongToBigNSSwapHostLongToLittleNSSwapHostShortToBigNSSwapHostShortToLittleNSSwapIntNSSwapLittleDoubleToHostNSSwapLittleFloatToHostNSSwapLittleIntToHostNSSwapLittleLongLongToHostNSSwapLittleLongToHostNSSwapLittleShortToHostNSSwapLongNSSwapLongLongNSSwapShort
You can also use the class NSDecimalNumber for
decimal arithmetic.
NSDecimalAddNSDecimalCompactNSDecimalCompareNSDecimalCopyNSDecimalDivideNSDecimalIsNotANumberNSDecimalMultiplyNSDecimalMultiplyByPowerOf10NSDecimalNormalizeNSDecimalPowerNSDecimalRoundNSDecimalStringNSDecimalSubtract
You can find the following macros implemented in NSException.h. They are obsolete and should not be used. See Exception
Programming Topics for information on how to handle exceptions.
NS_DURINGNS_ENDHANDLERNS_HANDLERNS_VALUERETURNNS_VOIDRETURN
NSAllocateObjectNSCopyObjectNSDeallocateObjectNSDecrementExtraRefCountWasZeroNSExtraRefCountNSIncrementExtraRefCountNSShouldRetainWithZone
NSGetSizeAndAlignmentNSClassFromStringNSStringFromClassNSSelectorFromStringNSStringFromSelectorNSStringFromProtocolNSProtocolFromString
NSLogNSLogv
NSFullUserNameNSHomeDirectoryNSHomeDirectoryForUserNSOpenStepRootDirectoryNSSearchPathForDirectoriesInDomainsNSTemporaryDirectoryNSUserName
NSEqualRangesNSIntersectionRangeNSLocationInRangeNSMakeRangeNSMaxRangeNSRangeFromStringNSStringFromRangeNSUnionRange
Whether there’s an uncaught exception handler function, any uncaught exceptions cause the program to terminate, unless the exception is raised during the posting of a notification.
NSGetUncaughtExceptionHandlerNSSetUncaughtExceptionHandler
CFBridgingRetainCFBridgingRelease
NSAllocateMemoryPagesNSCopyMemoryPagesNSDeallocateMemoryPagesNSLogPageSizeNSPageSizeNSRealMemoryAvailableNSRoundDownToMultipleOfPageSizeNSRoundUpToMultipleOfPageSizeNSMakeCollectable
Zones are ignored on iOS and 64-bit runtime on OS X. You should not use zones in current development.
NSCreateZoneNSRecycleZoneNSSetZoneNameNSZoneCallocNSZoneFreeNSZoneFromPointerNSZoneMallocNSZoneNameNSZoneReallocNSDefaultMallocZone
Copyright ? 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2014-04-09