newParent = test;
}
}
+ [[[nextNode parent] children] removeObject:nextNode];
[nextNode setParent:newParent];
[[newParent children] addObject:nextNode];
[newParent setType:ITMTFolderNode];
NSEnumerator *nestEnumerator = [nested objectEnumerator];
while ( (nextNode = [nestEnumerator nextObject]) ) {
[[sourceNode children] removeObject:nextNode];
+ [nested removeObject:nextNode];
}
[nested release];
enumerator = [[sourceNode children] reverseObjectEnumerator];
while ( (nextNode = [enumerator nextObject]) ) {
if ([nextNode type] == ITMTPodcastsNode) {
- [nextNode retain];
[[sourceNode children] removeObject:nextNode];
[[sourceNode children] insertObject:nextNode atIndex:1];
movedPodcasts = YES;
} else if ([nextNode type] == ITMTFolderNode) {
- [nextNode retain];
[[sourceNode children] removeObject:nextNode];
[[sourceNode children] insertObject:nextNode atIndex:1 + movedPodcasts];
}
return ( ([temp1 length]) ? temp1 : nil ) ;
}
+- (BOOL)songEnabledAtIndex:(int)index
+{
+ BOOL temp1;
+ ITDebugLog(@"Getting song enabled at index %i.", index);
+ temp1 = [ITSendAEWithString([NSString stringWithFormat:@"'----':obj { form:'prop', want:type('prop'), seld:type('enbl'), from:obj { form:'indx', want:type('cTrk'), seld:long(%lu), from:obj { form:'prop', want:type('prop'), seld:type('pPla'), from:'null'() } } }", index], 'core', 'getd', &savedPSN) booleanValue];
+ ITDebugLog(@"Getting song enabled at index %i done.", index);
+ return temp1;
+}
+
- (int)currentAlbumTrackCount
{
int temp1;
ITDebugLog(@"Not a valid track to set status to, returning.");
return NO;
}
- ITSendAEWithString([NSString stringWithFormat:@"data:long(%lu), '----':obj { form:'prop', want:type('prop'), seld:type('pSfa'), from:obj { form:'indx', want:type('cTrk'), seld:long(%lu), from:obj { form:'prop', want:type('prop'), seld:type('pPla'), from:'null'() } } }", !shufflable, [self currentSongIndex]], 'core', 'setd', &savedPSN);
+ ITSendAEWithString([NSString stringWithFormat:@"data:long(%lu), '----':obj { form:'prop', want:type('prop'), seld:type('pSfa'), from:obj { form:'indx', want:type('cTrk'), seld:long(%lu), from:obj { form:'prop', want:type('prop'), seld:type('pPla'), from:'null'() } } }", shufflable, [self currentSongIndex]], 'core', 'setd', &savedPSN);
ITDebugLog(@"Setting current song shufflable status to %i done.", shufflable);
return YES;
}
ITDebugLog(@"iTunes' highLPongOfPSN: %lu.", number.highLongOfPSN);
ITDebugLog(@"iTunes' lowLongOfPSN: %lu.", number.lowLongOfPSN);
ITDebugLog(@"Done getting iTunes' PSN.");
+ [(NSString *)name release];
return number;
}
[(NSString *)name release];