From abbc405b6feaeb7edd6e1fc7f16ea6996a5f7495 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Wed, 10 Aug 2011 18:45:58 +0200 Subject: [PATCH] Added MADocWindow window controller --- Medianno/MADocWindow.h | 13 + Medianno/MADocWindow.mm | 30 ++ Medianno/en.lproj/MADocument.xib | 583 ++++++++++++++++--------------- 3 files changed, 340 insertions(+), 286 deletions(-) create mode 100644 Medianno/MADocWindow.h create mode 100644 Medianno/MADocWindow.mm diff --git a/Medianno/MADocWindow.h b/Medianno/MADocWindow.h new file mode 100644 index 0000000..9e73e8b --- /dev/null +++ b/Medianno/MADocWindow.h @@ -0,0 +1,13 @@ +// +// MADocWindow.h +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright 2011 Apple Computer. All rights reserved. +// + +#import + +@interface MADocWindow : NSWindowController + +@end diff --git a/Medianno/MADocWindow.mm b/Medianno/MADocWindow.mm new file mode 100644 index 0000000..f775205 --- /dev/null +++ b/Medianno/MADocWindow.mm @@ -0,0 +1,30 @@ +// +// MADocWindow.mm +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright 2011 Apple Computer. All rights reserved. +// + +#import "MADocWindow.h" + +@implementation MADocWindow + +- (id)initWithWindow:(NSWindow *)window +{ + self = [super initWithWindow:window]; + if (self) { + // Initialization code here. + } + + return self; +} + +- (void)windowDidLoad +{ + [super windowDidLoad]; + + // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file. +} + +@end diff --git a/Medianno/en.lproj/MADocument.xib b/Medianno/en.lproj/MADocument.xib index 977d103..0689f28 100644 --- a/Medianno/en.lproj/MADocument.xib +++ b/Medianno/en.lproj/MADocument.xib @@ -53,7 +53,7 @@ YES - MADocument + MADocWindow FirstResponder @@ -73,39 +73,39 @@ 256 YES - + 274 YES - - + + 268 YES - - + + 2304 YES - - + + 256 {1161, 183} - + - + _NS:1197 YES - - + + 256 {1161, 17} - + - + _NS:1199 - + @@ -115,7 +115,7 @@ YES - + 165.90234375 40 1000 @@ -128,52 +128,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 - + - + 854.484375 40 1000 @@ -182,24 +182,24 @@ 2048 Notes - - + + - + 337772096 2048 Text Cell - - - - + + + + 3 YES YES - + - + 132 10 3.4028234663852886e+38 @@ -208,23 +208,23 @@ 2048 Date - + 6 System headerColor - + 3 MQA - + - + 337772096 -2147481600 Text Cell - - + + YES @@ -247,20 +247,20 @@ yyyy-MM-dd H:mm NO - - - + + + 3 YES YES - + 3 2 - - + + 6 System gridColor @@ -282,71 +282,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 @@ -359,44 +359,44 @@ {{0, 211}, {1163, 83}} - + - + _NS:46 - + - - + + 268 YES - - + + 2304 YES - - + + 256 {1352, 574} - + - + _NS:1197 YES - - + + 256 {1352, 17} - + - + _NS:1199 - + @@ -406,7 +406,7 @@ YES - + 101 40 1000 @@ -415,27 +415,27 @@ 2048 Time - + 3 MC4zMzMzMzI5ODU2AA - + - + 337772096 2048 Text Cell - - - - + + + + 3 YES YES - + - + 535.13671875 40 1000 @@ -444,24 +444,24 @@ 2048 Tags - - + + - + 337772096 2048 Text Cell - - - - + + + + 3 YES YES - + - + 706.83984375 10 3.4028234663852886e+38 @@ -470,28 +470,28 @@ 2048 Notes - - + + - + 337772096 2048 Text Cell - - - - + + + + 3 YES YES - + 3 2 - - + + 17 -698351616 @@ -505,82 +505,82 @@ {{1, 17}, {1161, 574}} - + - + _NS:1195 - - + + 4 - - + + -2147483392 {{224, 17}, {15, 102}} - + - + _NS:1214 - + _doScroller: 37 0.1947367936372757 - - + + 256 {{1, 576}, {1161, 15}} - + _NS:1216 YES 1 - + _doScroller: 0.85872781065088755 - - + + 2304 YES - + {{1, 0}, {1161, 17}} - + - + _NS:1200 - - + + 4 {{0, 304}, {1163, 592}} - + - + _NS:1193 133810 - - - - + + + + QSAAAEEgAABBmAAAQZgAAA {{-1, -23}, {1163, 896}} - + 3 {1161, 872} - + {{0, 0}, {2560, 1418}} {94, 108} @@ -613,71 +613,71 @@ 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 @@ -718,7 +718,7 @@ YES - + @@ -730,87 +730,87 @@ 100057 - + YES - - - + + + 100021 - + YES - - - - + + + + - + 100033 - - + + 100034 - + YES - - - - + + + + - + 100038 - + YES - - - + + + - + 100037 - - + + 100036 - - + + 100035 - - + + 100043 - + YES - - + + - + 100040 - + YES - - + + 268 @@ -821,10 +821,10 @@ {{105, 1}, {535, 22}} - + _NS:3123 YES - + 341966336 0 @@ -833,185 +833,185 @@ 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 - - + + @@ -1096,13 +1096,13 @@ YES - + com.apple.InterfaceBuilder.CocoaPlugin YES - + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1110,7 +1110,7 @@ YES - + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1145,11 +1145,22 @@ YES - MADocument - NSPersistentDocument + MADocWindow + NSWindowController + + addMediaFiles: + id + + + addMediaFiles: + + addMediaFiles: + id + + IBProjectSource - ./Classes/MADocument.h + ./Classes/MADocWindow.h