Mac Developer Library Developer
Search

Foundation Changes

Foundation

Framework Architectures
Fromi386,ppc,x86_64
Toi386,x86_64
FoundationErrors.h
NSAppleEventDescriptor.h
Removed -[NSAppleEventDescriptor removeDecriptorAtIndex:] (no architecture available)
NSArchiver.h
Added -[NSUnarchiver NS_AUTOMATED_REFCOUNT_UNAVAILABLE] (no architecture available)
NSArray.h
Declaration
From- (void)getObjects:(id *)objects
To- (void)getObjects:(id[])objects

Declaration
From- (void)getObjects:(id *)objects range:(NSRange)range
To- (void)getObjects:(id[])objects range:(NSRange)range

Declaration
From+ (id)arrayWithObjects:(const id *)objects count:(NSUInteger)cnt
To+ (id)arrayWithObjects:(const id[])objects count:(NSUInteger)cnt

Declaration
From- (id)initWithObjects:(const id *)objects count:(NSUInteger)cnt
To- (id)initWithObjects:(const id[])objects count:(NSUInteger)cnt

NSCache.h
Declaration
From- (void)setDelegate:(id)d
To- (void)setDelegate:(id < NSCacheDelegate >)d

Declaration
From- (id)delegate
To- (id < NSCacheDelegate >)delegate

Protocols
Fromnone
ToNSObject

NSCoder.h
Added -[NSCoder NS_AUTOMATED_REFCOUNT_UNAVAILABLE] (no architecture available)
NSComparisonPredicate.h
Declaration
From- (NSUInteger)options
To- (NSComparisonPredicateOptions)options

Declaration
From+ (NSPredicate *)predicateWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs modifier:(NSComparisonPredicateModifier)modifier type:(NSPredicateOperatorType)type options:(NSUInteger)options
To+ (NSPredicate *)predicateWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs modifier:(NSComparisonPredicateModifier)modifier type:(NSPredicateOperatorType)type options:(NSComparisonPredicateOptions)options

Declaration
From- (id)initWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs modifier:(NSComparisonPredicateModifier)modifier type:(NSPredicateOperatorType)type options:(NSUInteger)options
To- (id)initWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs modifier:(NSComparisonPredicateModifier)modifier type:(NSPredicateOperatorType)type options:(NSComparisonPredicateOptions)options

NSData.h
Added NSDataWritingFileProtectionComplete (no architecture available)
Added NSDataWritingFileProtectionCompleteUnlessOpen (no architecture available)
Added NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication (no architecture available)
Added NSDataWritingFileProtectionMask (no architecture available)
Added NSDataWritingFileProtectionNone (no architecture available)
Deprecation
Fromnone
ToOS X v10.7

Deprecation
Fromnone
ToOS X v10.7

NSDebug.h
Removed +[NSAutoreleasePool autoreleasedObjectCount]
Removed +[NSAutoreleasePool enableFreedObjectCheck:]
Removed +[NSAutoreleasePool enableRelease:]
Removed +[NSAutoreleasePool poolCountHighWaterMark]
Removed +[NSAutoreleasePool poolCountHighWaterResolution]
Removed +[NSAutoreleasePool resetTotalAutoreleasedObjects]
Removed +[NSAutoreleasePool setPoolCountHighWaterMark:]
Removed +[NSAutoreleasePool setPoolCountHighWaterResolution:]
Removed +[NSAutoreleasePool topAutoreleasePoolCount]
Removed +[NSAutoreleasePool totalAutoreleasedObjects]
Removed NSHangOnUncaughtException
NSDictionary.h
Declaration
From- (id)initWithObjects:(id *)objects forKeys:(id *)keys count:(NSUInteger)cnt
To- (id)initWithObjects:(const id[])objects forKeys:(const id[])keys count:(NSUInteger)cnt

Declaration
From+ (id)dictionaryWithObjects:(id *)objects forKeys:(id *)keys count:(NSUInteger)cnt
To+ (id)dictionaryWithObjects:(const id[])objects forKeys:(const id[])keys count:(NSUInteger)cnt

Declaration
From- (void)getObjects:(id *)objects andKeys:(id *)keys
To- (void)getObjects:(id[])objects andKeys:(id[])keys

NSEnumerator.h
Declaration
From- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len
To- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id[])buffer count:(NSUInteger)len

NSFileHandle.h
Deprecation
Fromnone
ToOS X v10.7

NSFileManager.h
Removed -[NSObject fileManager:shouldCopyItemAtPath:toPath:]
Removed -[NSObject fileManager:shouldCopyItemAtURL:toURL:]
Removed -[NSObject fileManager:shouldLinkItemAtPath:toPath:]
Removed -[NSObject fileManager:shouldLinkItemAtURL:toURL:]
Removed -[NSObject fileManager:shouldMoveItemAtPath:toPath:]
Removed -[NSObject fileManager:shouldMoveItemAtURL:toURL:]
Removed -[NSObject fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:]
Removed -[NSObject fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:]
Removed -[NSObject fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:]
Removed -[NSObject fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:]
Removed -[NSObject fileManager:shouldProceedAfterError:movingItemAtPath:toPath:]
Removed -[NSObject fileManager:shouldProceedAfterError:movingItemAtURL:toURL:]
Removed -[NSObject fileManager:shouldProceedAfterError:removingItemAtPath:]
Removed -[NSObject fileManager:shouldProceedAfterError:removingItemAtURL:]
Removed -[NSObject fileManager:shouldRemoveItemAtPath:]
Removed -[NSObject fileManager:shouldRemoveItemAtURL:]
Removed NSObject(NSFileManagerFileOperationAdditions)
NSFileWrapper.h
Added NSFileWrapper(NSDeprecated)
NSHost.h
Deprecation
Fromnone
ToOS X v10.7

Deprecation
Fromnone
ToOS X v10.7

Deprecation
Fromnone
ToOS X v10.7

NSKeyValueCoding.h
Declaration
From- (BOOL)validateValue:(id *)ioValue forKey:(NSString *)inKey error:(NSError **)outError
To- (BOOL)validateValue:(inout id *)ioValue forKey:(NSString *)inKey error:(out NSError **)outError

Declaration
From- (BOOL)validateValue:(id *)ioValue forKeyPath:(NSString *)inKeyPath error:(NSError **)outError
To- (BOOL)validateValue:(inout id *)ioValue forKeyPath:(NSString *)inKeyPath error:(out NSError **)outError

NSLinguisticTagger.h
Added NSString(NSLinguisticAnalysis)
NSNotification.h
Declaration
From- (id)addObserverForName:(NSString *)name object:(id)obj queue:(NSOperationQueue *)queue usingBlock:(void (^)(NSNotification *))block
To- (id)addObserverForName:(NSString *)name object:(id)obj queue:(NSOperationQueue *)queue usingBlock:(void (^)(NSNotification *note))block

NSObjCRuntime.h
Added #def AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_NA
Added #def AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_NA
Added #def AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_NA
Added #def AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_NA
Added #def AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_NA
Added #def AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_NA
Added #def AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_NA
Added #def AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_NA
Added #def AVAILABLE_MAC_OS_X_VERSION_NA_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_NA
Added #def NS_AUTOMATED_REFCOUNT_UNAVAILABLE
Added #def NS_AVAILABLE
Added #def NS_AVAILABLE_IOS
Added #def NS_AVAILABLE_IPHONE
Added #def NS_AVAILABLE_MAC
Added #def NS_CLASS_AVAILABLE
Added #def NS_DEPRECATED
Added #def NS_DEPRECATED_IOS
Added #def NS_DEPRECATED_IPHONE
Added #def NS_DEPRECATED_MAC
Added #def NS_NONATOMIC_IOSONLY
Added #def NS_RETURNS_NOT_RETAINED
Added #def NS_UNAVAILABLE
NSObject.h
Added -[NSObject NS_AUTOMATED_REFCOUNT_UNAVAILABLE] (no architecture available)
Added -[NSObject NS_UNAVAILABLE] (no architecture available)
NSOrderedSet.h
Added NSMutableOrderedSet(NSExtendedMutableOrderedSet)
Added NSMutableOrderedSet(NSMutableOrderedSetCreation)
Added NSOrderedSet(NSExtendedOrderedSet)
Added NSOrderedSet(NSOrderedSetCreation)
NSPointerFunctions.h
Declaration
From@property void(* relinquishFunction
To@property void(*relinquishFunction)(const void *item, NSUInteger(*size)(const void *item))

Declaration
From@property NSString *(* descriptionFunction
To@property NSString *(*descriptionFunction)(const void *item)

Declaration
From@property NSUInteger(* sizeFunction
To@property NSUInteger(*sizeFunction)(const void *item)

Declaration
From@property NSUInteger(* hashFunction
To@property NSUInteger(*hashFunction)(const void *item, NSUInteger(*size)(const void *item))

Declaration
From@property void *(* acquireFunction
To@property void *(*acquireFunction)(const void *src, NSUInteger(*size)(const void *item), BOOL shouldCopy)

Declaration
From@property BOOL(* isEqualFunction
To@property BOOL(*isEqualFunction)(const void *item1, const void *item2, NSUInteger(*size)(const void *item))

NSPort.h
NSPortCoder.h
Deprecation
Fromnone
ToOS X v10.7

Deprecation
Fromnone
ToOS X v10.7

Deprecation
Fromnone
ToOS X v10.7

Deprecation
Fromnone
ToOS X v10.7

NSPropertyList.h
Declaration
From+ (NSInteger)writePropertyList:(id)plist toStream:(NSOutputStream *)stream format:(NSPropertyListFormat)format options:(NSPropertyListWriteOptions)opt error:(NSError **)error
To+ (NSInteger)writePropertyList:(id)plist toStream:(NSOutputStream *)stream format:(NSPropertyListFormat)format options:(NSPropertyListWriteOptions)opt error:(out NSError **)error

Declaration
From+ (NSData *)dataWithPropertyList:(id)plist format:(NSPropertyListFormat)format options:(NSPropertyListWriteOptions)opt error:(NSError **)error
To+ (NSData *)dataWithPropertyList:(id)plist format:(NSPropertyListFormat)format options:(NSPropertyListWriteOptions)opt error:(out NSError **)error

Declaration
From+ (id)propertyListFromData:(NSData *)data mutabilityOption:(NSPropertyListMutabilityOptions)opt format:(NSPropertyListFormat *)format errorDescription:(NSString **)errorString
To+ (id)propertyListFromData:(NSData *)data mutabilityOption:(NSPropertyListMutabilityOptions)opt format:(NSPropertyListFormat *)format errorDescription:(out NSString **)errorString

Declaration
From+ (NSData *)dataFromPropertyList:(id)plist format:(NSPropertyListFormat)format errorDescription:(NSString **)errorString
To+ (NSData *)dataFromPropertyList:(id)plist format:(NSPropertyListFormat)format errorDescription:(out NSString **)errorString

Declaration
From+ (id)propertyListWithData:(NSData *)data options:(NSPropertyListReadOptions)opt format:(NSPropertyListFormat *)format error:(NSError **)error
To+ (id)propertyListWithData:(NSData *)data options:(NSPropertyListReadOptions)opt format:(NSPropertyListFormat *)format error:(out NSError **)error

Declaration
From+ (id)propertyListWithStream:(NSInputStream *)stream options:(NSPropertyListReadOptions)opt format:(NSPropertyListFormat *)format error:(NSError **)error
To+ (id)propertyListWithStream:(NSInputStream *)stream options:(NSPropertyListReadOptions)opt format:(NSPropertyListFormat *)format error:(out NSError **)error

NSProxy.h
Added -[NSProxy NS_UNAVAILABLE] (no architecture available)
NSRegularExpression.h
Added NSRegularExpression(NSMatching)
Added NSRegularExpression(NSReplacement)
NSSet.h
Declaration
From- (id)initWithObjects:(id *)objects count:(NSUInteger)cnt
To- (id)initWithObjects:(const id *)objects count:(NSUInteger)cnt

Declaration
From+ (id)setWithObjects:(id *)objects count:(NSUInteger)cnt
To+ (id)setWithObjects:(const id *)objects count:(NSUInteger)cnt

NSString.h
32/64-bitArchitectures
FromUnknownUnknown
ToBothi386,x86_64

NSTask.h
NSURL.h
Declaration
From- (BOOL)getResourceValue:(id *)value forKey:(NSString *)key error:(NSError **)error
To- (BOOL)getResourceValue:(out id *)value forKey:(NSString *)key error:(out NSError **)error

NSURLConnection.h
Removed -[NSObject connection:canAuthenticateAgainstProtectionSpace:]
Removed -[NSObject connection:didCancelAuthenticationChallenge:]
Removed -[NSObject connection:didFailWithError:]
Removed -[NSObject connection:didReceiveAuthenticationChallenge:]
Removed -[NSObject connection:didReceiveData:]
Removed -[NSObject connection:didReceiveResponse:]
Removed -[NSObject connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:]
Removed -[NSObject connection:needNewBodyStream:]
Removed -[NSObject connection:willCacheResponse:]
Removed -[NSObject connection:willSendRequest:redirectResponse:]
Removed -[NSObject connectionDidFinishLoading:]
Removed -[NSObject connectionShouldUseCredentialStorage:]
Removed NSObject(NSURLConnectionDelegate)
Added -[NSURLConnectionDelegate connection:didReceiveData:]
Added -[NSURLConnectionDelegate connection:didReceiveResponse:]
Added -[NSURLConnectionDelegate connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:]
Added -[NSURLConnectionDelegate connection:needNewBodyStream:]
Added -[NSURLConnectionDelegate connection:willCacheResponse:]
Added -[NSURLConnectionDelegate connection:willSendRequest:redirectResponse:]
Added -[NSURLConnectionDelegate connectionDidFinishLoading:]
Added NSURLConnection(NSURLConnectionQueuedLoading)
NSURLDownload.h
Removed -[NSObject download:canAuthenticateAgainstProtectionSpace:]
Removed -[NSObject download:decideDestinationWithSuggestedFilename:]
Removed -[NSObject download:didCancelAuthenticationChallenge:]
Removed -[NSObject download:didCreateDestination:]
Removed -[NSObject download:didFailWithError:]
Removed -[NSObject download:didReceiveAuthenticationChallenge:]
Removed -[NSObject download:didReceiveDataOfLength:]
Removed -[NSObject download:didReceiveResponse:]
Removed -[NSObject download:shouldDecodeSourceDataOfMIMEType:]
Removed -[NSObject download:willResumeWithResponse:fromByte:]
Removed -[NSObject download:willSendRequest:redirectResponse:]
Removed -[NSObject downloadDidBegin:]
Removed -[NSObject downloadDidFinish:]
Removed -[NSObject downloadShouldUseCredentialStorage:]
Removed NSObject(NSURLDownloadDelegate)
Declaration
From- (id)initWithResumeData:(NSData *)resumeData delegate:(id)delegate path:(NSString *)path
To- (id)initWithResumeData:(NSData *)resumeData delegate:(id < NSURLDownloadDelegate >)delegate path:(NSString *)path

Declaration
From- (id)initWithRequest:(NSURLRequest *)request delegate:(id)delegate
To- (id)initWithRequest:(NSURLRequest *)request delegate:(id < NSURLDownloadDelegate >)delegate

NSXMLElement.h
Added NSXMLElement(NSDeprecated)
Deprecation
Fromnone
ToOS X v10.7

NSXMLParser.h
NSZone.h
Added #def CF_CONSUMED
Feedback