Permalink
Browse files

- Fixed all the warnings

  • Loading branch information...
1 parent ca3d4e2 commit dd6c8d6efc5ae2125e97ac83b7084ea71c526dbb Kumaran Vijayan committed Apr 20, 2011
@@ -200,11 +200,11 @@ - (NSArray *)applicationsInTrash
if ([currentFilename hasSuffix:@".app"])
[applicationsInTrash addObject:currentFilename];
- [pool release];
+ [pool drain];
pool = [[NSAutoreleasePool alloc] init];
}
- [pool release];
+ [pool drain];
pool = nil;
}
}
@@ -270,7 +270,7 @@ - (void)handleWriteNotification:(NSNotification *)notification
// Get a snapshot of our matches so that we can remove objects from matches while enumerating
NSEnumerator *matchesEnumerator = [[matches allObjects] objectEnumerator];
id currentObject = nil;
- while (currentObject = [matchesEnumerator nextObject]) {
+ while ((currentObject = [matchesEnumerator nextObject])) {
[listController addPathForDeletion:currentObject];
[matches removeObject:currentObject];
}
@@ -303,11 +303,11 @@ - (int)numberOfVisibleItemsInTrash
if (![currentObject hasPrefix:@"."])
count++;
- [pool release];
+ [pool drain];
pool = [[NSAutoreleasePool alloc] init];
}
- [pool release];
+ [pool drain];
pool = nil;
return count;
@@ -383,7 +383,7 @@ - (IBAction)moveCurrentItemsToTrash:(id)sender
if (tag >= 0)
NSLog(@"Successfully moved %@ to trash", sourcePath);
else
- NSLog(@"Couldn't move %@ to trash (tag = %i)", sourcePath, tag);
+ NSLog(@"Couldn't move %@ to trash (tag = %d)", sourcePath, (int)tag);
}
// Remove the item from the list
@@ -312,8 +312,12 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)",
+ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
+ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_2)",
);
FRAMEWORK_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)\"";
+ FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../Library/Developer/Xcode/DerivedData/KVEvents-grmwmmjcazeezpfsyaouemdkffwa/Build/Products/Debug\"";
+ FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)\"";
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_ENABLE_OBJC_GC = YES;
@@ -322,6 +326,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
PRODUCT_NAME = AppTrap;
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = macosx;
@@ -338,14 +343,19 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)",
+ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
+ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_2)",
);
FRAMEWORK_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)\"";
+ FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../Library/Developer/Xcode/DerivedData/KVEvents-grmwmmjcazeezpfsyaouemdkffwa/Build/Products/Debug\"";
+ FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)\"";
GCC_ENABLE_OBJC_GC = YES;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_MODEL_TUNING = G5;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
PRODUCT_NAME = AppTrap;
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = macosx;
Oops, something went wrong.

0 comments on commit dd6c8d6

Please sign in to comment.