From ec626b6cb964fc4ee59c953f6b271fe8118731bd Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Thu, 18 Aug 2011 18:06:04 +0200 Subject: [PATCH] Remove (unimplemented) copying option --- Medianno/MAAddMediaSheet.h | 1 - Medianno/MAAddMediaSheet.mm | 6 +-- Medianno/MADocument.h | 2 +- Medianno/MADocument.mm | 2 +- Medianno/en.lproj/MAAddMedia.xib | 77 ++------------------------------ 5 files changed, 8 insertions(+), 80 deletions(-) diff --git a/Medianno/MAAddMediaSheet.h b/Medianno/MAAddMediaSheet.h index 90e328b..e0afb33 100644 --- a/Medianno/MAAddMediaSheet.h +++ b/Medianno/MAAddMediaSheet.h @@ -12,7 +12,6 @@ } @property (readonly) NSArray * media; -@property BOOL copyMedia; - (void)runWithParentWindow:(NSWindowController *)parent media:(NSArray *)urls; diff --git a/Medianno/MAAddMediaSheet.mm b/Medianno/MAAddMediaSheet.mm index 6e17741..83ac080 100644 --- a/Medianno/MAAddMediaSheet.mm +++ b/Medianno/MAAddMediaSheet.mm @@ -12,14 +12,12 @@ @implementation MAAddMediaSheet -@synthesize media, copyMedia; +@synthesize media; - (id)init { self = [super initWithWindowNibName:@"MAAddMedia"]; - copyMedia = YES; - return self; } @@ -37,7 +35,7 @@ NSURL * url = [obj objectForKey:@"url"]; NSString * name= [[url lastPathComponent] stringByDeletingPathExtension]; NSDate * date= [obj objectForKey:@"date"]; - [doc addMediaURL:url name:name date:date copying:copyMedia]; + [doc addMediaURL:url name:name date:date]; }]; } [[self window] orderOut:self]; diff --git a/Medianno/MADocument.h b/Medianno/MADocument.h index 014b436..0721706 100644 --- a/Medianno/MADocument.h +++ b/Medianno/MADocument.h @@ -17,7 +17,7 @@ NSFileWrapper * mediaWrapper; } -- (void)addMediaURL:(NSURL *)url name:(NSString *)name date:(NSDate *)date copying:(BOOL)copying; +- (void)addMediaURL:(NSURL *)url name:(NSString *)name date:(NSDate *)date; - (MAAnno *)addAnnotationForMedia:(MAMedia *)media location:(QTTime)location; - (MATagDescription *)tagDescriptionForName:(NSString *)name; - (MATagDescription *)tagDescriptionForName:(NSString *)name notes:(NSString *)notes; diff --git a/Medianno/MADocument.mm b/Medianno/MADocument.mm index 4120edb..3e16378 100644 --- a/Medianno/MADocument.mm +++ b/Medianno/MADocument.mm @@ -40,7 +40,7 @@ #pragma mark Media management -- (void)addMediaURL:(NSURL *)url name:(NSString *)name date:(NSDate *)date copying:(BOOL)copying +- (void)addMediaURL:(NSURL *)url name:(NSString *)name date:(NSDate *)date { NSManagedObjectContext *moc = [self managedObjectContext]; MAMedia * media = [NSEntityDescription insertNewObjectForEntityForName:@"MAMedia" inManagedObjectContext:moc]; diff --git a/Medianno/en.lproj/MAAddMedia.xib b/Medianno/en.lproj/MAAddMedia.xib index 76700e6..e0774a6 100644 --- a/Medianno/en.lproj/MAAddMedia.xib +++ b/Medianno/en.lproj/MAAddMedia.xib @@ -2,7 +2,7 @@ 1070 - 11A511 + 11B26 1617 1138 566.00 @@ -74,7 +74,6 @@ {{660, 12}, {107, 32}} - _NS:161 1000 YES @@ -138,7 +137,7 @@ {781, 380} - + _NS:1197 YES @@ -341,7 +340,7 @@ {{-1, 54}, {783, 398}} - + _NS:1193 133682 @@ -350,44 +349,13 @@ QSAAAEEgAABBmAAAQZgAAA - - - 268 - {{625, 458}, {138, 18}} - - - - _NS:239 - YES - - -2080244224 - 0 - Copy to Collection - - _NS:239 - - 1211912703 - 2 - - NSImage - NSSwitch - - - NSSwitch - - - - 200 - 25 - - 268 {{137, 456}, {371, 26}} - + _NS:179 YES @@ -525,22 +493,6 @@ 42 - - - value: copyMedia - - - - - - value: copyMedia - value - copyMedia - 2 - - - 68 - contentArray: media @@ -653,7 +605,6 @@ - @@ -756,20 +707,6 @@ - - 16 - - - YES - - - - - - 17 - - - 18 @@ -856,8 +793,6 @@ 13.IBPluginDependency 14.IBPluginDependency 15.IBPluginDependency - 16.IBPluginDependency - 17.IBPluginDependency 18.IBPluginDependency 19.IBPluginDependency 2.IBPluginDependency @@ -900,8 +835,6 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -967,13 +900,11 @@ YES NSMenuCheckmark NSMenuMixedState - NSSwitch YES {9, 8} {7, 2} - {15, 15}