Skip to content

Commit

Permalink
Replace deprecated API usage, upgrade Xcode project file to version 3.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
josh.aas committed Jul 6, 2012
1 parent f482a65 commit 9609ade
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
25 changes: 18 additions & 7 deletions LineBreak.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 42;
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -201,9 +201,16 @@
/* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0420;
};
buildConfigurationList = 036BFF5A09D4864F003A7A3E /* Build configuration list for PBXProject "LineBreak" */;
compatibilityVersion = "Xcode 2.4";
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
en,
);
mainGroup = 29B97314FDCFA39411CA2CEA /* LineBreak */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -278,10 +285,10 @@
036BFF5309D4864D003A7A3E /* Development */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = "";
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
Expand All @@ -291,6 +298,7 @@
LIBRARY_SEARCH_PATHS = "";
OTHER_LDFLAGS = "";
PRODUCT_NAME = LineBreak;
SDKROOT = macosx;
SECTORDER_FLAGS = "";
WARNING_CFLAGS = (
"-Wmost",
Expand All @@ -305,9 +313,9 @@
036BFF5409D4864D003A7A3E /* Deployment */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = YES;
FRAMEWORK_SEARCH_PATHS = "";
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
HEADER_SEARCH_PATHS = "";
Expand All @@ -316,6 +324,7 @@
LIBRARY_SEARCH_PATHS = "";
OTHER_LDFLAGS = "";
PRODUCT_NAME = LineBreak;
SDKROOT = macosx;
SECTORDER_FLAGS = "";
WARNING_CFLAGS = (
"-Wmost",
Expand All @@ -330,6 +339,7 @@
036BFF5509D4864D003A7A3E /* Default */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
FRAMEWORK_SEARCH_PATHS = "";
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
Expand All @@ -339,6 +349,7 @@
LIBRARY_SEARCH_PATHS = "";
OTHER_LDFLAGS = "";
PRODUCT_NAME = LineBreak;
SDKROOT = macosx;
SECTORDER_FLAGS = "";
WARNING_CFLAGS = (
"-Wmost",
Expand All @@ -357,7 +368,7 @@
i386,
);
MACOSX_DEPLOYMENT_TARGET = 10.4;
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
};
name = Development;
};
Expand All @@ -369,7 +380,7 @@
i386,
);
MACOSX_DEPLOYMENT_TARGET = 10.4;
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
};
name = Deployment;
};
Expand All @@ -381,7 +392,7 @@
i386,
);
MACOSX_DEPLOYMENT_TARGET = 10.4;
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
};
name = Default;
};
Expand Down
9 changes: 5 additions & 4 deletions ProtectionPanel.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,18 @@ -(IBAction)addExtension:(id)sender {
}

-(IBAction)removeSelection:(id)sender {
int i;
NSMutableArray *currentFileExtensions;
NSArray *selections = [[mExtensionsTable selectedRowEnumerator] allObjects];
NSIndexSet *selections = [mExtensionsTable selectedRowIndexes];
if ([self isExcludeSelected]) {
currentFileExtensions = [NSMutableArray arrayWithArray:[preferences arrayForKey:NonTextFileExtensionsKey]];
}
else {
currentFileExtensions = [NSMutableArray arrayWithArray:[preferences arrayForKey:TextFileExtensionsKey]];
}
for (i = ([selections count] - 1); i >= 0; i--) {
[currentFileExtensions removeObjectAtIndex:[[selections objectAtIndex:i] intValue]];
NSUInteger i = [selections lastIndex];
while (i != NSNotFound) {
[currentFileExtensions removeObjectAtIndex:i];
i = [selections indexLessThanIndex:i];
}
if ([self isExcludeSelected]) {
[preferences setObject:[NSArray arrayWithArray:currentFileExtensions] forKey:NonTextFileExtensionsKey];
Expand Down

0 comments on commit 9609ade

Please sign in to comment.