diff --git a/Medianno/MAMedia.h b/Medianno/MAMedia.h index a383996..4d13ac1 100644 --- a/Medianno/MAMedia.h +++ b/Medianno/MAMedia.h @@ -8,6 +8,7 @@ #import #import +#import @class MAAnno, MAFolder; @@ -20,6 +21,10 @@ @property (nonatomic, retain) NSString * notes; @property (nonatomic, retain) NSSet *annotations; @property (nonatomic, retain) MAFolder *folder; + +- (QTMovie *)movie; ++ (NSSet *)keyPathsForValuesAffectingMovie; + @end @interface MAMedia (CoreDataGeneratedAccessors) diff --git a/Medianno/MAMedia.mm b/Medianno/MAMedia.mm index eba76e6..6a351db 100644 --- a/Medianno/MAMedia.mm +++ b/Medianno/MAMedia.mm @@ -19,4 +19,14 @@ @dynamic annotations; @dynamic folder; ++ (NSSet *)keyPathsForValuesAffectingMovie +{ + return [NSSet setWithObject:@"media"]; +} + +- (QTMovie *)movie +{ + return [QTMovie movieWithFile:self.media error:nil]; +} + @end diff --git a/Medianno/en.lproj/MADocument.xib b/Medianno/en.lproj/MADocument.xib index b6a8155..770f257 100644 --- a/Medianno/en.lproj/MADocument.xib +++ b/Medianno/en.lproj/MADocument.xib @@ -75,39 +75,39 @@ 256 YES - + 274 YES - - + + 268 YES - - + + 2304 YES - - + + 256 {1161, 183} - + - + _NS:1197 YES - - + + 256 {1161, 17} - + - + _NS:1199 - + @@ -117,7 +117,7 @@ YES - + 284.265625 40 1000 @@ -130,52 +130,52 @@ 11 3100 - + 3 MC4zMzMzMzI5ODU2AA - + 6 System headerTextColor - + 3 MAA - + 337772096 2048 Text Cell - + LucidaGrande 13 1044 - - + + 6 System controlBackgroundColor - + 3 MC42NjY2NjY2NjY3AA - + 6 System controlTextColor - + 3 YES YES - + - + 741.24609375 40 1000 @@ -184,24 +184,24 @@ 2048 Notes - - + + - + 337772096 2048 Text Cell - - - - + + + + 3 YES YES - + - + 127 10 3.4028234663852886e+38 @@ -210,23 +210,23 @@ 2048 Date - + 6 System headerColor - + 3 MQA - + - + 337772096 -2147481600 Text Cell - - + + YES @@ -249,20 +249,20 @@ yyyy-MM-dd HH:mm NO - - - + + + 3 YES YES - + 3 2 - - + + 6 System gridColor @@ -284,71 +284,71 @@ {{1, 17}, {1161, 183}} - + - + _NS:1195 - - + + 4 - - + + -2147483392 {{224, 17}, {15, 102}} - + - + _NS:1214 - + _doScroller: 37 0.1947367936372757 - - + + -2147483392 {{1, 880}, {379, 15}} - + - + _NS:1216 1 - + _doScroller: 0.36477382098171318 - - + + 2304 YES - + {{1, 0}, {1161, 17}} - + - + _NS:1200 - - + + 4 {1163, 201} - + - + _NS:1193 133682 - - - - + + + + QSAAAEEgAABBmAAAQZgAAA - - + + 301 YES @@ -360,45 +360,45 @@ QTMoviePasteboardType - {{0, 211}, {1163, 83}} - + {{0, 211}, {1163, 18}} + - + _NS:46 - + - + - - + + 268 YES - - + + 2304 YES - - + + 256 - {1352, 574} - + {1352, 639} + - + _NS:1197 YES - - + + 256 {1352, 17} - + - + _NS:1199 - + @@ -408,7 +408,7 @@ YES - + 101 40 1000 @@ -417,27 +417,27 @@ 2048 Time - + 3 MC4zMzMzMzI5ODU2AA - + - + 337772096 2048 Text Cell - - - - + + + + 3 YES YES - + - + 535.13671875 40 1000 @@ -446,24 +446,24 @@ 2048 Tags - - + + - + 337772096 2048 Text Cell - - - - + + + + 3 YES YES - + - + 706.83984375 10 3.4028234663852886e+38 @@ -472,28 +472,28 @@ 2048 Notes - - + + - + 337772096 2048 Text Cell - - - - + + + + 3 YES YES - + 3 2 - - + + 17 -698351616 @@ -506,83 +506,83 @@ 1 - {{1, 17}, {1161, 574}} - + {{1, 17}, {1161, 639}} + - + _NS:1195 - - + + 4 - - + + -2147483392 {{224, 17}, {15, 102}} - + - + _NS:1214 - + _doScroller: 37 0.1947367936372757 - - + + 256 - {{1, 576}, {1161, 15}} - + {{1, 641}, {1161, 15}} + _NS:1216 YES 1 - + _doScroller: 0.85872781065088755 - - + + 2304 YES - + {{1, 0}, {1161, 17}} - + - + _NS:1200 - - + + 4 - {{0, 304}, {1163, 592}} - + {{0, 239}, {1163, 657}} + - + _NS:1193 133810 - - - - + + + + QSAAAEEgAABBmAAAQZgAAA {{-1, -23}, {1163, 896}} - + 3 {1161, 872} - + {{0, 0}, {2560, 1418}} {94, 108} @@ -592,7 +592,7 @@ NSApplication - + YES MAMedia @@ -603,7 +603,7 @@ 3 valueForKey: - + 1 @@ -629,7 +629,7 @@ 3 valueForKey: - + YES @@ -660,7 +660,7 @@ YES YES - + YES @@ -686,82 +686,82 @@ textField - + 274 YES - - + + 266 {101, 17} - - + + YES - + 67239488 272631808 Table View Cell - - - + + + 6 System controlColor - + - + {{1, 1}, {101, 17}} - + - + 100081 textField - + 274 YES - - + + 266 {707, 17} - - + + YES - + 67239488 272631808 Table View Cell - - - - + + + + {{643, 1}, {707, 17}} - + - + 100085 value: arrangedObjects.name - - + + - - + + value: arrangedObjects.name value arrangedObjects.name @@ -773,11 +773,11 @@ value: arrangedObjects.notes - - + + - - + + value: arrangedObjects.notes value arrangedObjects.notes @@ -789,11 +789,11 @@ value: arrangedObjects.date - - + + - - + + value: arrangedObjects.date value arrangedObjects.date @@ -809,10 +809,10 @@ contentSet: document.inboxFolder.contents - + - + contentSet: document.inboxFolder.contents contentSet @@ -826,6 +826,22 @@ 100102 + + + movie: selection.movie + + + + + + movie: selection.movie + movie + selection.movie + 2 + + + 100104 + @@ -863,7 +879,7 @@ YES - + @@ -875,87 +891,87 @@ 100057 - + YES - - - + + + 100021 - + YES - - - - + + + + - + 100033 - - + + 100034 - + YES - - - - + + + + - + 100038 - + YES - - - + + + - + 100037 - - + + 100036 - - + + 100035 - - + + 100043 - + YES - - + + - + 100040 - + YES - - + + 268 @@ -966,10 +982,10 @@ {{105, 1}, {535, 22}} - + _NS:3123 YES - + 341966336 0 @@ -978,195 +994,195 @@ 16 _NS:3123 - + YES 6 System textBackgroundColor - + - - + + 0.0 0 2 - + 100039 - + YES - - + + - + 100042 - - + + 100041 - - + + 100044 - - + + 100025 - + YES - - - + + + - + 100024 - - + + 100023 - - + + 100022 - - + + 100030 - + YES - + - + 100027 - + YES - + - + 100026 - + YES - + - + 100029 - - + + 100028 - - + + 100031 - + YES - + - + 100032 - - + + 100076 - + YES - + - + 100077 - - + + 100078 - + YES - + - + 100079 - + YES - + - + 100080 - - + + 100082 - + YES - + - + 100083 - + YES - + - + 100084 - - + + 100086 - + MediaController 100094 - + @@ -1255,13 +1271,13 @@ YES - + com.apple.InterfaceBuilder.CocoaPlugin YES - + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1269,7 +1285,7 @@ YES - + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1301,7 +1317,7 @@ - 100102 + 100104