- (BOOL)isAppRunning
{
NSArray *apps = [[NSWorkspace sharedWorkspace] launchedApplications];
- int i;
+ int i,count = [apps count];
- for (i = 0; i < [apps count]; i++) {
+ for (i = 0; i < count; i++) {
if ([[[apps objectAtIndex:i] objectForKey:@"NSApplicationName"]
isEqualToString:@"iTunes"]) {
return YES;
[presets addObject:[self runScriptAndReturnResult:[NSString stringWithFormat:@"get name of playlist %i", i]]];
}
- return [NSArray arrayWithArray:presets];
+ return [presets autorelease];
}
- (int)numberOfSongsInPlaylistAtIndex:(int)index
[presets addObject:[self runScriptAndReturnResult:[NSString stringWithFormat:@"get name of EQ preset %i", i]]];
}
- return [NSArray arrayWithArray:presets];
+ return [presets autorelease];
}
- (int)currentEQPresetIndex