diff --git a/Preferences/General/PlaylistBehaviorArrayController.h b/Preferences/General/PlaylistBehaviorArrayController.h new file mode 100644 index 000000000..58874d73d --- /dev/null +++ b/Preferences/General/PlaylistBehaviorArrayController.h @@ -0,0 +1,16 @@ +// +// PlaylistBehaviorArrayController.h +// General +// +// Created by Vasily Fedoseyev on 5/18/08. +// Copyright 2008 __MyCompanyName__. All rights reserved. +// + +#import + + +@interface PlaylistBehaviorArrayController : NSArrayController { + +} + +@end diff --git a/Preferences/General/PlaylistBehaviorArrayController.m b/Preferences/General/PlaylistBehaviorArrayController.m new file mode 100644 index 000000000..f0e5ca976 --- /dev/null +++ b/Preferences/General/PlaylistBehaviorArrayController.m @@ -0,0 +1,32 @@ +// +// PlaylistBehaviorArrayController.m +// General +// +// Created by Vasily Fedoseyev on 5/18/08. +// Copyright 2008 __MyCompanyName__. All rights reserved. +// + +#import "PlaylistBehaviorArrayController.h" + + +@implementation PlaylistBehaviorArrayController +- (void)awakeFromNib +{ + [self removeObjects:[self arrangedObjects]]; + + [self addObject: + [NSDictionary dictionaryWithObjectsAndKeys: + NSLocalizedStringFromTableInBundle(@"Clear playlist and play", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", + @"clearAndPlay", @"slug",nil]]; + [self addObject: + [NSDictionary dictionaryWithObjectsAndKeys: + NSLocalizedStringFromTableInBundle(@"Enqueue", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", + @"enqueue", @"slug",nil]]; + [self addObject: + [NSDictionary dictionaryWithObjectsAndKeys: + NSLocalizedStringFromTableInBundle(@"Enqueue and play", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", + @"enqueueAndPlay", @"slug",nil]]; + +} + +@end