From 666d803897571644066eab0f94060a4ab2008255 Mon Sep 17 00:00:00 2001 From: matthewleon Date: Sat, 1 Mar 2008 15:04:46 +0000 Subject: [PATCH] Code cleanup. --- Audio/CogAudio.xcodeproj/project.pbxproj | 8 ++++---- Audio/PluginController.m | 4 +--- FileTreeWindow/FileTreeDataSource.m | 2 +- Playlist/PlaylistLoader.m | 4 ++-- Playlist/PlaylistView.m | 2 +- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Audio/CogAudio.xcodeproj/project.pbxproj b/Audio/CogAudio.xcodeproj/project.pbxproj index 2188c819e..70acd7344 100644 --- a/Audio/CogAudio.xcodeproj/project.pbxproj +++ b/Audio/CogAudio.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 42; + objectVersion = 44; objects = { /* Begin PBXBuildFile section */ @@ -344,7 +344,7 @@ 0867D690FE84028FC02AAC07 /* Project object */ = { isa = PBXProject; buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "CogAudio" */; - compatibilityVersion = "Xcode 2.4"; + compatibilityVersion = "Xcode 3.0"; hasScannedForEncodings = 1; mainGroup = 0867D691FE84028FC02AAC07 /* CogAudio */; productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; @@ -450,7 +450,7 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; PREBINDING = NO; - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk"; SYMROOT = ../build; }; name = Debug; @@ -465,7 +465,7 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; PREBINDING = NO; - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk"; SYMROOT = ../build; }; name = Release; diff --git a/Audio/PluginController.m b/Audio/PluginController.m index df66ba68c..ebc6a7d65 100644 --- a/Audio/PluginController.m +++ b/Audio/PluginController.m @@ -89,10 +89,8 @@ static PluginController *sharedPluginController = nil; - (void)bundleDidLoad:(NSNotification *)notification { - NSString *className; NSArray *classNames = [[notification userInfo] objectForKey:@"NSLoadedClasses"]; - NSEnumerator *e = [classNames objectEnumerator]; - while (className = [e nextObject]) + for (NSString *className in classNames) { NSLog(@"Class loaded: %@", className); Class bundleClass = NSClassFromString(className); diff --git a/FileTreeWindow/FileTreeDataSource.m b/FileTreeWindow/FileTreeDataSource.m index cd0bc05be..dccf1a1b7 100644 --- a/FileTreeWindow/FileTreeDataSource.m +++ b/FileTreeWindow/FileTreeDataSource.m @@ -67,7 +67,7 @@ ] stringByStandardizingPath]; PathNode *node = rootNode; NSLog(@"Root | Relative | Path: %@ | %@ | %@",[[self rootURL] path], relativePath, path); - for(NSString *c in [relativePath pathComponents]) + for (NSString *c in [relativePath pathComponents]) { NSLog(@"COMPONENT: %@", c); BOOL found = NO; diff --git a/Playlist/PlaylistLoader.m b/Playlist/PlaylistLoader.m index 609503625..9a9b9badf 100755 --- a/Playlist/PlaylistLoader.m +++ b/Playlist/PlaylistLoader.m @@ -121,7 +121,7 @@ NSArray *subpaths = [manager subpathsAtPath:path]; - for(NSString *subpath in subpaths) + for (NSString *subpath in subpaths) { NSString *absoluteSubpath = [NSString pathWithComponents:[NSArray arrayWithObjects:path,subpath,nil]]; @@ -266,7 +266,7 @@ [playlistController setSelectionIndex:index]; //Other thread for reading things... - [NSThread detachNewThreadSelector:@selector(readEntriesInfoThread:) toTarget:self withObject:entries]; + [self performSelectorInBackground:@selector(readEntriesInfoThread:) withObject:entries]; return; } diff --git a/Playlist/PlaylistView.m b/Playlist/PlaylistView.m index aa94ab0de..992d39bf7 100644 --- a/Playlist/PlaylistView.m +++ b/Playlist/PlaylistView.m @@ -34,7 +34,7 @@ withKeyPath:@"values.fontSize" options:bindOptions]; - for(NSTableColumn *col in [self tableColumns]) { + for (NSTableColumn *col in [self tableColumns]) { [[col dataCell] setControlSize:s]; [[col dataCell] setFont:f]; if ([[col dataCell] respondsToSelector:@selector(setFontSize:)]) {