Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add compiler attributes to tell it the dct_init methods return a reta…

…ined object. Closes #5
  • Loading branch information...
commit 391073eb32fae1d8caf5930e52cee7f46f6c0d6b 1 parent a11a1ad
@danielctull authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 NSFetchRequest+DCTExtras.h
View
10 NSFetchRequest+DCTExtras.h
@@ -57,21 +57,21 @@ extern NSUInteger const DCTFetchBatchSizeNil;
sortDescriptors:(NSArray *)sortDescriptors
batchSize:(NSUInteger)batchSize;
-- (id)dct_initWithEntity:(NSEntityDescription *)entity;
+- (id)dct_initWithEntity:(NSEntityDescription *)entity __attribute__((ns_consumes_self))__attribute__((ns_returns_retained));
- (id)dct_initWithEntity:(NSEntityDescription *)entity
- predicate:(NSPredicate *)predicate;
+ predicate:(NSPredicate *)predicate __attribute__((ns_consumes_self))__attribute__((ns_returns_retained));
- (id)dct_initWithEntity:(NSEntityDescription *)entity
- sortDescriptors:(NSArray *)sortDescriptors;
+ sortDescriptors:(NSArray *)sortDescriptors __attribute__((ns_consumes_self))__attribute__((ns_returns_retained));
- (id)dct_initWithEntity:(NSEntityDescription *)entity
predicate:(NSPredicate *)predicate
- sortDescriptors:(NSArray *)sortDescriptors;
+ sortDescriptors:(NSArray *)sortDescriptors __attribute__((ns_consumes_self))__attribute__((ns_returns_retained));
- (id)dct_initWithEntity:(NSEntityDescription *)entity
predicate:(NSPredicate *)predicate
sortDescriptors:(NSArray *)sortDescriptors
- batchSize:(NSUInteger)batchSize;
+ batchSize:(NSUInteger)batchSize __attribute__((ns_consumes_self))__attribute__((ns_returns_retained));
@end
Please sign in to comment.
Something went wrong with that request. Please try again.