Skip to content

Commit

Permalink
Turned on ARC for DelaunayTest, and the whole Edgy project (though ev…
Browse files Browse the repository at this point in the history
…erything else already used it)
  • Loading branch information
mrotondo committed Jun 22, 2013
1 parent cf3f289 commit c5107e1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions DelaunayTest/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
//

#import <UIKit/UIKit.h>
#import "DelaunayTestAppDelegate.h"

int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([DelaunayTestAppDelegate class]));
}
}
4 changes: 4 additions & 0 deletions Edgy.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
CLANG_ENABLE_OBJC_ARC = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
Expand All @@ -780,6 +781,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
CLANG_ENABLE_OBJC_ARC = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
Expand Down Expand Up @@ -832,6 +834,7 @@
D508BBAC17714D5600D36144 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
D508BBB017714D5600D36144 /* Build configuration list for PBXNativeTarget "Edgy DemoTests" */ = {
isa = XCConfigurationList;
Expand All @@ -840,6 +843,7 @@
D508BBAE17714D5600D36144 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
D5A55A1713EE19130001ADF7 /* Build configuration list for PBXNativeTarget "Edgy iOS" */ = {
isa = XCConfigurationList;
Expand Down
2 changes: 1 addition & 1 deletion Edgy/DelaunayPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@property (nonatomic, strong) id value;
@property (nonatomic, strong) UIColor *color;

+ (DelaunayPoint *) pointAtX:(float)x andY:(float)y;
+ (DelaunayPoint *)pointAtX:(float)x andY:(float)y;
+ (DelaunayPoint *)pointAtX:(float)newX andY:(float)newY withID:(NSNumber *)idNumber;
- (NSArray *)counterClockwiseEdges;

Expand Down
1 change: 1 addition & 0 deletions Edgy/DelaunayTriangulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
+ (DelaunayTriangulation *)triangulationWithRect:(CGRect)rect;
- (BOOL)addPoint:(DelaunayPoint *)newPoint withColor:(UIColor *)color;
- (DelaunayTriangle *)triangleContainingPoint:(DelaunayPoint *)point;
- (void)enforceDelaunayProperty;
- (NSDictionary*)voronoiCells;
- (void)interpolateWeightsWithPoint:(DelaunayPoint *)point;

Expand Down

0 comments on commit c5107e1

Please sign in to comment.