Playlists are now saved as they have been rearranged in the UI

CQTexperiment
Chris Moeller 2013-10-18 00:43:55 -07:00
parent aa2676f605
commit 3b8b948a1e
1 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@
}
[fileHandle truncateFileAtOffset:0];
for (PlaylistEntry *pe in [playlistController content])
for (PlaylistEntry *pe in [playlistController arrangedObjects])
{
NSString *path = [self relativePathFrom:filename toURL:[pe URL]];
[fileHandle writeData:[[path stringByAppendingString:@"\n"] dataUsingEncoding:NSUTF8StringEncoding]];
@ -144,7 +144,7 @@
[fileHandle writeData:[[NSString stringWithFormat:@"[playlist]\nnumberOfEntries=%lu\n\n",(unsigned long)[[playlistController content] count]] dataUsingEncoding:NSUTF8StringEncoding]];
int i = 1;
for (PlaylistEntry *pe in [playlistController content])
for (PlaylistEntry *pe in [playlistController arrangedObjects])
{
NSString *path = [self relativePathFrom:filename toURL:[pe URL]];
NSString *entry = [NSString stringWithFormat:@"File%i=%@\n",i,path];
@ -207,7 +207,7 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL
NSMutableArray * topLevel = [[NSMutableArray alloc] init];
for (PlaylistEntry *pe in [playlistController content])
for (PlaylistEntry *pe in [playlistController arrangedObjects])
{
BOOL error = [pe error];