Skip to content

Commit

Permalink
Turn off ARC because of the Runtime Fun happening
Browse files Browse the repository at this point in the history
  • Loading branch information
casademora committed Jun 20, 2012
1 parent 9b152b2 commit 3be36ff
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion MagicalRecord/Factory/MRFactoryObject.h
Expand Up @@ -27,7 +27,7 @@ typedef id(^MRFactoryObjectSequenceBuildAction)(MRFactoryObject *obj, NSUIntege
@interface MRFactoryObject : NSObject<MRFactoryObject>

@property (nonatomic, assign, readonly) Class factoryClass;
@property (nonatomic, strong, readonly) NSString *alias;
@property (nonatomic, copy, readonly) NSString *alias;
@property (nonatomic, strong, readonly) NSArray *actions;

+ (id) factoryWithClass:(Class)klass;
Expand Down
7 changes: 3 additions & 4 deletions MagicalRecord/Factory/MRFactoryObject.m
Expand Up @@ -20,7 +20,7 @@ @interface MRFactoryObject ()
@property (nonatomic, strong, readwrite) NSSet *associatedFactories;

@property (nonatomic, strong, readwrite) id cachedValue;
@property (nonatomic, strong, readwrite) MRFactoryObjectSequenceBuildAction cachedSequence;
@property (nonatomic, copy, readwrite) MRFactoryObjectSequenceBuildAction cachedSequence;
@property (nonatomic, strong, readwrite) MRFactoryObjectSelectorCaptureObject *selectorCapturer;

- (void) completeSelectorCapture;
Expand Down Expand Up @@ -91,9 +91,7 @@ - (id) forProperty;
// {
// return nil;
// }
self.selectorCapturer = [MRFactoryObjectSelectorCaptureObject capturerWithFactory:self];

return self.selectorCapturer;
return self.selectorCapturer = [MRFactoryObjectSelectorCaptureObject capturerWithFactory:self];
}

- (void) completeSelectorCapture;
Expand Down Expand Up @@ -139,6 +137,7 @@ - (void) setSequenceAction:(MRFactoryObjectSequenceBuildAction)action forPropert
{
__weak id weakSelf = self;
__block NSUInteger index = startIndex;

MRFactoryObjectBuildAction sequenceActionWrapper = ^id(MRFactoryObject *obj){

id returnValue = nil;
Expand Down
8 changes: 7 additions & 1 deletion MagicalRecord/Factory/MRFactoryObjectSelectorCaptureObject.m
Expand Up @@ -18,14 +18,20 @@ + (id) capturerWithFactory:(MRFactoryObject *)factory;
return capturer;
}

//- (id)forwardingTargetForSelector:(SEL)aSelector;
//{
// self.capturedSelector = aSelector;
// return self.factory;
//}
////
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [[self.factory factoryClass] instanceMethodSignatureForSelector:aSelector];
}

- (void)forwardInvocation:(NSInvocation *)anInvocation;
{
//just want to collect the selector, and absorbe the invocation
//just want to collect the selector, and absorb the invocation
self.capturedSelector = anInvocation.selector;
anInvocation.selector = @selector(completeSelectorCapture);
[anInvocation invokeWithTarget:self.factory];
Expand Down
4 changes: 2 additions & 2 deletions Project Files/MagicalRecord.xcodeproj/project.pbxproj
Expand Up @@ -1123,7 +1123,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_ARC = NO;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1165,7 +1165,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_ARC = NO;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down

0 comments on commit 3be36ff

Please sign in to comment.