Register defaults for shuffle/repeat.
parent
bafb6485f4
commit
489063ad33
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue