MacOSX/VLC_app: Better naming scheme for the different UI elements.
[vlc.git] / extras / MacOSX / VLC_app / Sources / VLCAppBindings.m
index 5c66ccc..e8790f4 100644 (file)
@@ -28,9 +28,9 @@
 
 
 /******************************************************************************
- * VLCMediaDiscoverer (MasterViewBindings)
+ * VLCMediaDiscoverer (CategoriesListBindings)
  */
-@implementation VLCMediaDiscoverer (MasterViewBindings)
+@implementation VLCMediaDiscoverer (CategoriesListBindings)
 +(void)initialize
 {
     [VLCMediaDiscoverer setKeys:[NSArray arrayWithObject:@"running"] triggerChangeNotificationsForDependentKey:@"currentlyFetchingItems"];
@@ -43,7 +43,7 @@
     if( !dict )
     {
         dict = [[NSDictionary dictionaryWithObjectsAndKeys:
-            [NSSet setWithObject:@"discoveredMedia.flatAspect"], @"childrenInMasterViewForDetailView",
+            [NSSet setWithObject:@"discoveredMedia.flatAspect"], @"childrenInCategoriesListForDetailView",
             nil] retain];
     }
     return [dict objectForKey: key];
     return sdImage;
 }
 
-/* MasterView specific bindings */
-- (NSArray *)childrenInMasterView
+/* CategoriesList specific bindings */
+- (NSArray *)childrenInCategoriesList
 {
     return nil;
 }
-- (NSString *)descriptionInMasterView
+- (NSString *)descriptionInCategoriesList
 {
     return [self localizedName];
 }
-- (VLCMediaListAspect *)childrenInMasterViewForDetailView
+- (VLCMediaListAspect *)childrenInCategoriesListForDetailView
 {
     return [[self discoveredMedia] flatAspect];
 }
-- (BOOL)editableInMasterView
+- (BOOL)editableInCategoriesList
 {
     return NO;
 }
-- (BOOL)selectableInMasterView
+- (BOOL)selectableInCategoriesList
 {
     return YES;
 }
     if( !dict )
     {
         dict = [[NSDictionary dictionaryWithObjectsAndKeys:
-            [NSSet setWithObject:@"subitems.hierarchicalNodeAspect.media"], @"childrenInMasterView",
-            [NSSet setWithObject:@"metaDictionary.title"], @"descriptionInMasterView",
-            [NSSet setWithObject:@"subitems.flatAspect"], @"childrenInMasterViewForDetailView",
+            [NSSet setWithObject:@"subitems.hierarchicalNodeAspect.media"], @"childrenInCategoriesList",
+            [NSSet setWithObject:@"metaDictionary.title"], @"descriptionInCategoriesList",
+            [NSSet setWithObject:@"subitems.flatAspect"], @"childrenInCategoriesListForDetailView",
             [NSSet setWithObject:@"metaDictionary.title"], @"descriptionInVideoView",
             [NSSet setWithObject:@"state"], @"stateAsImage",
             nil] retain];
     return [dict objectForKey: key];
 }
 
-/* MasterView specific bindings */
-- (NSArray *)childrenInMasterView
+/* CategoriesList specific bindings */
+- (NSArray *)childrenInCategoriesList
 {
     return [[[self subitems] hierarchicalNodeAspect] valueForKeyPath:@"media"];
 }
-- (void)setDescriptionInMasterView:(NSString *)description
+- (void)setDescriptionInCategoriesList:(NSString *)description
 {
     NSLog(@"unimplemented: meta edition");
 }
-- (NSString *)descriptionInMasterView
+- (NSString *)descriptionInCategoriesList
 {
     return [[self metaDictionary] objectForKey:@"title"];
 }
-- (VLCMediaListAspect *)childrenInMasterViewForDetailView
+- (VLCMediaListAspect *)childrenInCategoriesListForDetailView
 {
     return [[self subitems] flatAspect];
 }
-- (BOOL)editableInMasterView
+- (BOOL)editableInCategoriesList
 {
     return YES;
 }
-- (BOOL)selectableInMasterView
+- (BOOL)selectableInCategoriesList
 {
     return YES;
 }
     return [[self metaDictionary] objectForKey:@"title"];
 }
 
-/* DetailList specific bindings */
+/* mediaListView specific bindings */
 - (NSImage *)stateAsImage
 {
     static NSImage * playing = nil;