Add DEPRECATED_ATTRIBUTE_MESSAGE(message) macro to display a helpful recommendation message along with the default deprecation message.

This commit is contained in:
Jawwad Ahmad
2012-07-18 12:25:41 -04:00
parent 046e277088
commit b9979e337e
3 changed files with 37 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
#import "RKObjectMappingProvider.h"
#import "RKConfigurationDelegate.h"
#import "RKObjectPaginator.h"
#import "RKMacros.h"
@protocol RKParser;
@@ -460,6 +461,6 @@ typedef enum {
- (void)putObject:(id<NSObject>)object mapResponseWith:(RKObjectMapping *)objectMapping delegate:(id<RKObjectLoaderDelegate>)delegate DEPRECATED_ATTRIBUTE;
- (void)deleteObject:(id<NSObject>)object mapResponseWith:(RKObjectMapping *)objectMapping delegate:(id<RKObjectLoaderDelegate>)delegate DEPRECATED_ATTRIBUTE;
@property (nonatomic, retain) RKManagedObjectStore *objectStore DEPRECATED_ATTRIBUTE;
@property (nonatomic, retain) RKManagedObjectStore *objectStore DEPRECATED_ATTRIBUTE_MESSAGE("Use managedObjectStore instead");
@end