diff --git a/Medianno/MADocWindow.h b/Medianno/MADocWindow.h
index 7e2cd1f..efc9958 100644
--- a/Medianno/MADocWindow.h
+++ b/Medianno/MADocWindow.h
@@ -13,6 +13,7 @@
IBOutlet NSArrayController* annotationController;
IBOutlet QTMovieView * movieView;
IBOutlet NSTokenField * tokenFieldProto;
+ IBOutlet NSTableView * mediaTable;
IBOutlet NSTableView * annotationTable;
IBOutlet NSTableColumn * tokenColumn;
}
diff --git a/Medianno/MADocWindow.mm b/Medianno/MADocWindow.mm
index 39f2886..48020b9 100644
--- a/Medianno/MADocWindow.mm
+++ b/Medianno/MADocWindow.mm
@@ -113,4 +113,21 @@
return [[self document] tagDescriptionForName:editingString];
}
+#pragma mark Menu commands
+
+- (IBAction)delete:(id)sender
+{
+ NSResponder * responder = [[self window] firstResponder];
+ while (responder && responder != self) {
+ if (responder == mediaTable) {
+ [mediaController remove:sender];
+ break;
+ } else if (responder == annotationTable) {
+ [annotationController remove:sender];
+ break;
+ }
+ responder = [responder nextResponder];
+ }
+}
+
@end
diff --git a/Medianno/en.lproj/MADocument.xib b/Medianno/en.lproj/MADocument.xib
index 1fbd43d..ab7c66c 100644
--- a/Medianno/en.lproj/MADocument.xib
+++ b/Medianno/en.lproj/MADocument.xib
@@ -72,6 +72,7 @@
{550, 22}
+
_NS:3123
YES
@@ -145,6 +146,7 @@
256
{1279, 183}
+
_NS:1197
YES
@@ -153,6 +155,7 @@
256
{1279, 17}
+
_NS:1199
@@ -320,6 +323,7 @@
{{1, 17}, {1279, 183}}
+
_NS:1195
@@ -331,6 +335,7 @@
-2147483392
{{224, 17}, {15, 102}}
+
_NS:1214
@@ -343,6 +348,7 @@
-2147483392
{{1, 185}, {1278, 15}}
+
_NS:1216
1
@@ -359,6 +365,7 @@
{{1, 0}, {1279, 17}}
+
_NS:1200
@@ -368,6 +375,7 @@
{1281, 201}
+
_NS:1193
133682
@@ -402,6 +410,7 @@
{{0, 581}, {1281, 16}}
+
_NS:46
@@ -425,6 +434,7 @@
256
{1279, 564}
+
_NS:1197
YES
@@ -433,6 +443,7 @@
256
{1279, 17}
+
_NS:1199
@@ -546,6 +557,7 @@
{{1, 17}, {1279, 564}}
+
_NS:1195
@@ -557,6 +569,7 @@
-2147483392
{{224, 17}, {15, 102}}
+
_NS:1214
@@ -568,6 +581,7 @@
-2147483392
{{1, 566}, {1279, 15}}
+
_NS:1216
1
@@ -584,6 +598,7 @@
{{1, 0}, {1279, 17}}
+
@@ -592,6 +607,7 @@
{{0, -1}, {1281, 582}}
+
_NS:1193
133682
@@ -604,12 +620,14 @@
{1281, 599}
+
_NS:11
{{0, 211}, {1281, 599}}
+
_NS:9
{0, 0}
@@ -634,12 +652,14 @@
{1281, 810}
+
3
{1280, 809}
+
{{0, 0}, {2560, 1418}}
@@ -1008,6 +1028,46 @@
100176
+
+
+
+ managedObjectContext: document.managedObjectContext
+
+
+
+
+
+ managedObjectContext: document.managedObjectContext
+ managedObjectContext
+ document.managedObjectContext
+ 2
+
+
+ 100178
+
+
+
+ managedObjectContext: document.managedObjectContext
+
+
+
+
+
+ managedObjectContext: document.managedObjectContext
+ managedObjectContext
+ document.managedObjectContext
+ 2
+
+
+ 100179
+
@@ -1395,9 +1455,120 @@
- 100176
+ 100179
+
+
+
+ YES
+
+ MADocWindow
+ NSWindowController
+
+ YES
+
+ YES
+ addAnnotation:
+ addMediaFiles:
+
+
+ YES
+ id
+ id
+
+
+
+ YES
+
+ YES
+ addAnnotation:
+ addMediaFiles:
+
+
+ YES
+
+ addAnnotation:
+ id
+
+
+ addMediaFiles:
+ id
+
+
+
+
+ YES
+
+ YES
+ annotationController
+ annotationTable
+ mediaController
+ mediaTable
+ movieView
+ tokenColumn
+ tokenFieldProto
+
+
+ YES
+ NSArrayController
+ NSTableView
+ NSArrayController
+ NSTableView
+ QTMovieView
+ NSTableColumn
+ NSTokenField
+
+
+
+ YES
+
+ YES
+ annotationController
+ annotationTable
+ mediaController
+ mediaTable
+ movieView
+ tokenColumn
+ tokenFieldProto
+
+
+ YES
+
+ annotationController
+ NSArrayController
+
+
+ annotationTable
+ NSTableView
+
+
+ mediaController
+ NSArrayController
+
+
+ mediaTable
+ NSTableView
+
+
+ movieView
+ QTMovieView
+
+
+ tokenColumn
+ NSTableColumn
+
+
+ tokenFieldProto
+ NSTokenField
+
+
+
+
+ IBProjectSource
+ ./Classes/MADocWindow.h
+
+
+
-
0
IBCocoaFramework
diff --git a/Medianno/en.lproj/MainMenu.xib b/Medianno/en.lproj/MainMenu.xib
index 4c14373..73b2225 100644
--- a/Medianno/en.lproj/MainMenu.xib
+++ b/Medianno/en.lproj/MainMenu.xib
@@ -395,19 +395,10 @@
-
469
-
-
- pasteAsPlainText:
-
-
-
- 471
-
showHelp:
@@ -1476,7 +1459,6 @@
-
@@ -1898,11 +1880,6 @@
-
- 470
-
-
-
491
@@ -2042,7 +2019,6 @@
462.IBPluginDependency
464.IBPluginDependency
465.IBPluginDependency
- 470.IBPluginDependency
491.IBPluginDependency
492.IBPluginDependency
493.IBPluginDependency
@@ -2166,7 +2142,6 @@
com.apple.InterfaceBuilder.CocoaPlugin
com.apple.InterfaceBuilder.CocoaPlugin
com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
@@ -2208,14 +2183,102 @@
MADocWindow
NSWindowController
- addMediaFiles:
- id
+ YES
+
+ YES
+ addAnnotation:
+ addMediaFiles:
+
+
+ YES
+ id
+ id
+
- addMediaFiles:
-
- addMediaFiles:
- id
+ YES
+
+ YES
+ addAnnotation:
+ addMediaFiles:
+
+
+ YES
+
+ addAnnotation:
+ id
+
+
+ addMediaFiles:
+ id
+
+
+
+
+ YES
+
+ YES
+ annotationController
+ annotationTable
+ mediaController
+ mediaTable
+ movieView
+ tokenColumn
+ tokenFieldProto
+
+
+ YES
+ NSArrayController
+ NSTableView
+ NSArrayController
+ NSTableView
+ QTMovieView
+ NSTableColumn
+ NSTokenField
+
+
+
+ YES
+
+ YES
+ annotationController
+ annotationTable
+ mediaController
+ mediaTable
+ movieView
+ tokenColumn
+ tokenFieldProto
+
+
+ YES
+
+ annotationController
+ NSArrayController
+
+
+ annotationTable
+ NSTableView
+
+
+ mediaController
+ NSArrayController
+
+
+ mediaTable
+ NSTableView
+
+
+ movieView
+ QTMovieView
+
+
+ tokenColumn
+ NSTableColumn
+
+
+ tokenFieldProto
+ NSTokenField
+
@@ -2223,25 +2286,6 @@
./Classes/MADocWindow.h
-
- MADocument
- NSPersistentDocument
-
- addAnnotation:
- id
-
-
- addAnnotation:
-
- addAnnotation:
- id
-
-
-
- IBProjectSource
- ./Classes/MADocument.h
-
-
0