Register defaults for shuffle/repeat.

CQTexperiment
vspader 2009-02-28 10:18:56 -08:00
parent bafb6485f4
commit 489063ad33
1 changed files with 13 additions and 0 deletions

View File

@ -61,6 +61,17 @@
}
- (void)initDefaults
{
NSDictionary *defaultsDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInteger:RepeatNone], @"repeatMode",
[NSNumber numberWithBool:NO], @"shuffle",
nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:defaultsDictionary];
}
- (id)initWithCoder:(NSCoder *)decoder
{
self = [super initWithCoder:decoder];
@ -69,11 +80,13 @@
{
shuffleList = [[NSMutableArray alloc] init];
queueList = [[NSMutableArray alloc] init];
[self initDefaults];
}
return self;
}
- (void)dealloc
{
[shuffleList release];