Code cleanup.

CQTexperiment
matthewleon 2008-03-01 15:04:46 +00:00
parent e5187b9a48
commit 666d803897
5 changed files with 9 additions and 11 deletions

View File

@ -3,7 +3,7 @@
archiveVersion = 1; archiveVersion = 1;
classes = { classes = {
}; };
objectVersion = 42; objectVersion = 44;
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
@ -344,7 +344,7 @@
0867D690FE84028FC02AAC07 /* Project object */ = { 0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject; isa = PBXProject;
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "CogAudio" */; buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "CogAudio" */;
compatibilityVersion = "Xcode 2.4"; compatibilityVersion = "Xcode 3.0";
hasScannedForEncodings = 1; hasScannedForEncodings = 1;
mainGroup = 0867D691FE84028FC02AAC07 /* CogAudio */; mainGroup = 0867D691FE84028FC02AAC07 /* CogAudio */;
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
@ -450,7 +450,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO; PREBINDING = NO;
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
SYMROOT = ../build; SYMROOT = ../build;
}; };
name = Debug; name = Debug;
@ -465,7 +465,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO; PREBINDING = NO;
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
SYMROOT = ../build; SYMROOT = ../build;
}; };
name = Release; name = Release;

View File

@ -89,10 +89,8 @@ static PluginController *sharedPluginController = nil;
- (void)bundleDidLoad:(NSNotification *)notification - (void)bundleDidLoad:(NSNotification *)notification
{ {
NSString *className;
NSArray *classNames = [[notification userInfo] objectForKey:@"NSLoadedClasses"]; NSArray *classNames = [[notification userInfo] objectForKey:@"NSLoadedClasses"];
NSEnumerator *e = [classNames objectEnumerator]; for (NSString *className in classNames)
while (className = [e nextObject])
{ {
NSLog(@"Class loaded: %@", className); NSLog(@"Class loaded: %@", className);
Class bundleClass = NSClassFromString(className); Class bundleClass = NSClassFromString(className);

View File

@ -67,7 +67,7 @@
] stringByStandardizingPath]; ] stringByStandardizingPath];
PathNode *node = rootNode; PathNode *node = rootNode;
NSLog(@"Root | Relative | Path: %@ | %@ | %@",[[self rootURL] path], relativePath, path); NSLog(@"Root | Relative | Path: %@ | %@ | %@",[[self rootURL] path], relativePath, path);
for(NSString *c in [relativePath pathComponents]) for (NSString *c in [relativePath pathComponents])
{ {
NSLog(@"COMPONENT: %@", c); NSLog(@"COMPONENT: %@", c);
BOOL found = NO; BOOL found = NO;

View File

@ -121,7 +121,7 @@
NSArray *subpaths = [manager subpathsAtPath:path]; NSArray *subpaths = [manager subpathsAtPath:path];
for(NSString *subpath in subpaths) for (NSString *subpath in subpaths)
{ {
NSString *absoluteSubpath = [NSString pathWithComponents:[NSArray arrayWithObjects:path,subpath,nil]]; NSString *absoluteSubpath = [NSString pathWithComponents:[NSArray arrayWithObjects:path,subpath,nil]];
@ -266,7 +266,7 @@
[playlistController setSelectionIndex:index]; [playlistController setSelectionIndex:index];
//Other thread for reading things... //Other thread for reading things...
[NSThread detachNewThreadSelector:@selector(readEntriesInfoThread:) toTarget:self withObject:entries]; [self performSelectorInBackground:@selector(readEntriesInfoThread:) withObject:entries];
return; return;
} }

View File

@ -34,7 +34,7 @@
withKeyPath:@"values.fontSize" withKeyPath:@"values.fontSize"
options:bindOptions]; options:bindOptions];
for(NSTableColumn *col in [self tableColumns]) { for (NSTableColumn *col in [self tableColumns]) {
[[col dataCell] setControlSize:s]; [[col dataCell] setControlSize:s];
[[col dataCell] setFont:f]; [[col dataCell] setFont:f];
if ([[col dataCell] respondsToSelector:@selector(setFontSize:)]) { if ([[col dataCell] respondsToSelector:@selector(setFontSize:)]) {