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;
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;

View File

@ -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);

View File

@ -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;

View File

@ -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;
}

View File

@ -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:)]) {