Fix display issues in MAAddMediaSheet

This commit is contained in:
Matthias Neeracher 2011-08-12 03:25:15 +02:00
parent 33a9854b0c
commit d57b567030
3 changed files with 233 additions and 280 deletions

View File

@ -13,8 +13,7 @@ typedef void (^MAAddMediaBlock)(NSURL * url, NSDate * date);
@interface MAAddMediaSheet : NSWindowController {
}
@property (readonly) NSArray * urls;
@property (readonly) NSArray * dates;
@property (readonly) NSArray * media;
@property BOOL copyMedia;
- (void)runWithParentWindow:(NSWindow *)win media:(NSArray *)urls addMedia:(MAAddMediaBlock)block;

View File

@ -11,7 +11,7 @@
@implementation MAAddMediaSheet
@synthesize urls, dates, copyMedia;
@synthesize media, copyMedia;
- (id)init
{
@ -24,12 +24,15 @@
- (void)runWithParentWindow:(NSWindow *)win media:(NSArray *)mediaUrls addMedia:(MAAddMediaBlock)block
{
urls = [mediaUrls retain];
NSMutableArray * m = [[NSMutableArray alloc] initWithCapacity:[mediaUrls count]];
for (NSURL * url in mediaUrls)
[m addObject:[NSMutableDictionary dictionaryWithObject:url forKey:@"url"]];
media = m;
[self useModificationDates:self];
[NSApp beginSheet:[self window] modalForWindow:win didEndBlock:^(NSInteger returnCode) {
if (returnCode == NSAlertFirstButtonReturn) {
[urls enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
block(obj, [dates objectAtIndex:idx]);
[media enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
block([obj objectForKey:@"url"], [obj objectForKey:@"date"]);
}];
}
[[self window] orderOut:self];
@ -39,20 +42,16 @@
- (void)dealloc
{
[urls release];
[dates release];
[media release];
}
- (IBAction)useModificationDates:(id)sender
{
NSMutableArray * newDates = [[NSMutableArray alloc] initWithCapacity:[urls count]];
for (NSURL * url in urls) {
for (NSMutableDictionary * m in media) {
NSDate * modificationDate;
[url getResourceValue:&modificationDate forKey:NSURLContentModificationDateKey error:nil];
[newDates addObject:(modificationDate ? modificationDate : [NSDate date])];
[[m objectForKey:@"url"] getResourceValue:&modificationDate forKey:NSURLContentModificationDateKey error:nil];
[m setObject:(modificationDate ? modificationDate : [NSDate date]) forKey:@"date"];
}
[dates release];
dates = newDates;
}
- (IBAction)endSheet:(id)sender

View File

@ -68,7 +68,7 @@
<int key="NSvFlags">256</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSButton" id="813678091">
<object class="NSButton" id="128002513">
<reference key="NSNextResponder" ref="1006"/>
<int key="NSvFlags">289</int>
<string key="NSFrame">{{660, 12}, {107, 32}}</string>
@ -78,17 +78,17 @@
<string key="NSReuseIdentifierKey">_NS:161</string>
<int key="NSTag">1000</int>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="954893509">
<object class="NSButtonCell" key="NSCell" id="282547565">
<int key="NSCellFlags">67239424</int>
<int key="NSCellFlags2">134217728</int>
<string key="NSContents">Add Media</string>
<object class="NSFont" key="NSSupport" id="919859977">
<object class="NSFont" key="NSSupport" id="706852951">
<string key="NSName">LucidaGrande</string>
<double key="NSSize">13</double>
<int key="NSfFlags">1044</int>
</object>
<string key="NSCellIdentifier">_NS:161</string>
<reference key="NSControlView" ref="813678091"/>
<reference key="NSControlView" ref="128002513"/>
<int key="NSButtonFlags">-2038284033</int>
<int key="NSButtonFlags2">129</int>
<string key="NSAlternateContents"/>
@ -97,23 +97,23 @@
<int key="NSPeriodicInterval">25</int>
</object>
</object>
<object class="NSButton" id="715776734">
<object class="NSButton" id="169511556">
<reference key="NSNextResponder" ref="1006"/>
<int key="NSvFlags">289</int>
<string key="NSFrame">{{578, 12}, {82, 32}}</string>
<reference key="NSSuperview" ref="1006"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="813678091"/>
<reference key="NSNextKeyView" ref="128002513"/>
<string key="NSReuseIdentifierKey">_NS:161</string>
<int key="NSTag">1001</int>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="459093726">
<object class="NSButtonCell" key="NSCell" id="778487738">
<int key="NSCellFlags">67239424</int>
<int key="NSCellFlags2">134217728</int>
<string key="NSContents">Cancel</string>
<reference key="NSSupport" ref="919859977"/>
<reference key="NSSupport" ref="706852951"/>
<string key="NSCellIdentifier">_NS:161</string>
<reference key="NSControlView" ref="715776734"/>
<reference key="NSControlView" ref="169511556"/>
<int key="NSButtonFlags">-2038284033</int>
<int key="NSButtonFlags2">129</int>
<string key="NSAlternateContents"/>
@ -122,34 +122,34 @@
<int key="NSPeriodicInterval">25</int>
</object>
</object>
<object class="NSScrollView" id="44119519">
<object class="NSScrollView" id="333350533">
<reference key="NSNextResponder" ref="1006"/>
<int key="NSvFlags">268</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSClipView" id="839179094">
<reference key="NSNextResponder" ref="44119519"/>
<object class="NSClipView" id="482978525">
<reference key="NSNextResponder" ref="333350533"/>
<int key="NSvFlags">2304</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSTableView" id="128275161">
<reference key="NSNextResponder" ref="839179094"/>
<object class="NSTableView" id="879438073">
<reference key="NSNextResponder" ref="482978525"/>
<int key="NSvFlags">256</int>
<string key="NSFrameSize">{781, 380}</string>
<reference key="NSSuperview" ref="839179094"/>
<reference key="NSSuperview" ref="482978525"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="793017783"/>
<reference key="NSNextKeyView" ref="635678385"/>
<string key="NSReuseIdentifierKey">_NS:1197</string>
<bool key="NSEnabled">YES</bool>
<object class="NSTableHeaderView" key="NSHeaderView" id="17148666">
<reference key="NSNextResponder" ref="764521728"/>
<object class="NSTableHeaderView" key="NSHeaderView" id="678384619">
<reference key="NSNextResponder" ref="106724295"/>
<int key="NSvFlags">256</int>
<string key="NSFrameSize">{781, 17}</string>
<reference key="NSSuperview" ref="764521728"/>
<reference key="NSSuperview" ref="106724295"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="839179094"/>
<reference key="NSNextKeyView" ref="482978525"/>
<string key="NSReuseIdentifierKey">_NS:1199</string>
<reference key="NSTableView" ref="128275161"/>
<reference key="NSTableView" ref="879438073"/>
</object>
<object class="_NSCornerView" key="NSCornerView">
<nil key="NSNextResponder"/>
@ -159,8 +159,8 @@
</object>
<object class="NSMutableArray" key="NSTableColumns">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSTableColumn" id="401382727">
<double key="NSWidth">636.44140625</double>
<object class="NSTableColumn" id="767196666">
<double key="NSWidth">600.68359375</double>
<double key="NSMinWidth">40</double>
<double key="NSMaxWidth">1000</double>
<object class="NSTableHeaderCell" key="NSHeaderCell">
@ -172,48 +172,48 @@
<double key="NSSize">11</double>
<int key="NSfFlags">3100</int>
</object>
<object class="NSColor" key="NSBackgroundColor" id="81200780">
<object class="NSColor" key="NSBackgroundColor" id="943348320">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC4zMzMzMzI5ODU2AA</bytes>
</object>
<object class="NSColor" key="NSTextColor" id="780539591">
<object class="NSColor" key="NSTextColor" id="700373886">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">headerTextColor</string>
<object class="NSColor" key="NSColor" id="413066164">
<object class="NSColor" key="NSColor" id="762150637">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object>
</object>
</object>
<object class="NSTextFieldCell" key="NSDataCell" id="141316995">
<int key="NSCellFlags">337772096</int>
<object class="NSTextFieldCell" key="NSDataCell" id="437451264">
<int key="NSCellFlags">67239488</int>
<int key="NSCellFlags2">2048</int>
<string key="NSContents">Text Cell</string>
<reference key="NSSupport" ref="919859977"/>
<reference key="NSControlView" ref="128275161"/>
<object class="NSColor" key="NSBackgroundColor" id="415285095">
<reference key="NSSupport" ref="706852951"/>
<reference key="NSControlView" ref="879438073"/>
<object class="NSColor" key="NSBackgroundColor" id="301202484">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">controlBackgroundColor</string>
<object class="NSColor" key="NSColor" id="161252341">
<object class="NSColor" key="NSColor" id="382934078">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
</object>
</object>
<object class="NSColor" key="NSTextColor" id="1038699070">
<object class="NSColor" key="NSTextColor" id="427298897">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">controlTextColor</string>
<reference key="NSColor" ref="413066164"/>
<reference key="NSColor" ref="762150637"/>
</object>
</object>
<int key="NSResizingMask">3</int>
<bool key="NSIsResizeable">YES</bool>
<reference key="NSTableView" ref="128275161"/>
<reference key="NSTableView" ref="879438073"/>
</object>
<object class="NSTableColumn" id="101430055">
<double key="NSWidth">139</double>
<object class="NSTableColumn" id="309449751">
<double key="NSWidth">174</double>
<double key="NSMinWidth">40</double>
<double key="NSMaxWidth">1000</double>
<object class="NSTableHeaderCell" key="NSHeaderCell">
@ -221,44 +221,42 @@
<int key="NSCellFlags2">2048</int>
<string key="NSContents">Date</string>
<reference key="NSSupport" ref="26"/>
<reference key="NSBackgroundColor" ref="81200780"/>
<reference key="NSTextColor" ref="780539591"/>
<reference key="NSBackgroundColor" ref="943348320"/>
<reference key="NSTextColor" ref="700373886"/>
</object>
<object class="NSTextFieldCell" key="NSDataCell" id="801009663">
<int key="NSCellFlags">337772096</int>
<object class="NSTextFieldCell" key="NSDataCell" id="989397518">
<int key="NSCellFlags">67239488</int>
<int key="NSCellFlags2">-2147481600</int>
<string key="NSContents">Text Cell</string>
<reference key="NSSupport" ref="919859977"/>
<object class="NSDateFormatter" key="NSFormatter" id="101126637">
<reference key="NSSupport" ref="706852951"/>
<object class="NSDateFormatter" key="NSFormatter" id="947998294">
<object class="NSMutableDictionary" key="NS.attributes">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>dateFormat</string>
<string>dateStyle</string>
<string>doesRelativeDateFormatting</string>
<string>formatterBehavior</string>
<string>timeStyle</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>yyyy-MM-dd H:mm </string>
<integer value="2"/>
<boolean value="NO"/>
<string>yyyy-MM-dd HH:mm</string>
<integer value="3"/>
<integer value="1040"/>
<integer value="1"/>
</object>
</object>
<string key="NS.format">yyyy-MM-dd H:mm </string>
<string key="NS.format">yyyy-MM-dd HH:mm</string>
<bool key="NS.natural">NO</bool>
</object>
<reference key="NSControlView" ref="128275161"/>
<reference key="NSBackgroundColor" ref="415285095"/>
<reference key="NSTextColor" ref="1038699070"/>
<reference key="NSControlView" ref="879438073"/>
<reference key="NSBackgroundColor" ref="301202484"/>
<reference key="NSTextColor" ref="427298897"/>
</object>
<int key="NSResizingMask">3</int>
<bool key="NSIsResizeable">YES</bool>
<reference key="NSTableView" ref="128275161"/>
<reference key="NSTableView" ref="879438073"/>
</object>
</object>
<double key="NSIntercellSpacingWidth">3</double>
@ -277,7 +275,7 @@
</object>
</object>
<double key="NSRowHeight">17</double>
<int key="NSTvFlags">-700448768</int>
<int key="NSTvFlags">-692060160</int>
<reference key="NSDelegate"/>
<reference key="NSDataSource"/>
<int key="NSColumnAutoresizingStyle">4</int>
@ -289,85 +287,85 @@
</object>
</object>
<string key="NSFrame">{{1, 17}, {781, 380}}</string>
<reference key="NSSuperview" ref="44119519"/>
<reference key="NSSuperview" ref="333350533"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="128275161"/>
<reference key="NSNextKeyView" ref="879438073"/>
<string key="NSReuseIdentifierKey">_NS:1195</string>
<reference key="NSDocView" ref="128275161"/>
<reference key="NSBGColor" ref="415285095"/>
<reference key="NSDocView" ref="879438073"/>
<reference key="NSBGColor" ref="301202484"/>
<int key="NScvFlags">4</int>
</object>
<object class="NSScroller" id="793017783">
<reference key="NSNextResponder" ref="44119519"/>
<object class="NSScroller" id="635678385">
<reference key="NSNextResponder" ref="333350533"/>
<int key="NSvFlags">-2147483392</int>
<string key="NSFrame">{{224, 17}, {15, 102}}</string>
<reference key="NSSuperview" ref="44119519"/>
<reference key="NSSuperview" ref="333350533"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="749408378"/>
<reference key="NSNextKeyView" ref="1034196638"/>
<string key="NSReuseIdentifierKey">_NS:1214</string>
<reference key="NSTarget" ref="44119519"/>
<reference key="NSTarget" ref="333350533"/>
<string key="NSAction">_doScroller:</string>
<double key="NSCurValue">37</double>
<double key="NSPercent">0.1947367936372757</double>
</object>
<object class="NSScroller" id="749408378">
<reference key="NSNextResponder" ref="44119519"/>
<object class="NSScroller" id="1034196638">
<reference key="NSNextResponder" ref="333350533"/>
<int key="NSvFlags">-2147483392</int>
<string key="NSFrame">{{1, 119}, {223, 15}}</string>
<reference key="NSSuperview" ref="44119519"/>
<reference key="NSSuperview" ref="333350533"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="715776734"/>
<reference key="NSNextKeyView" ref="169511556"/>
<string key="NSReuseIdentifierKey">_NS:1216</string>
<int key="NSsFlags">1</int>
<reference key="NSTarget" ref="44119519"/>
<reference key="NSTarget" ref="333350533"/>
<string key="NSAction">_doScroller:</string>
<double key="NSPercent">0.57142859697341919</double>
</object>
<object class="NSClipView" id="764521728">
<reference key="NSNextResponder" ref="44119519"/>
<object class="NSClipView" id="106724295">
<reference key="NSNextResponder" ref="333350533"/>
<int key="NSvFlags">2304</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="17148666"/>
<reference ref="678384619"/>
</object>
<string key="NSFrame">{{1, 0}, {781, 17}}</string>
<reference key="NSSuperview" ref="44119519"/>
<reference key="NSSuperview" ref="333350533"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="17148666"/>
<reference key="NSNextKeyView" ref="678384619"/>
<string key="NSReuseIdentifierKey">_NS:1200</string>
<reference key="NSDocView" ref="17148666"/>
<reference key="NSBGColor" ref="415285095"/>
<reference key="NSDocView" ref="678384619"/>
<reference key="NSBGColor" ref="301202484"/>
<int key="NScvFlags">4</int>
</object>
</object>
<string key="NSFrame">{{-1, 54}, {783, 398}}</string>
<reference key="NSSuperview" ref="1006"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="764521728"/>
<reference key="NSNextKeyView" ref="106724295"/>
<string key="NSReuseIdentifierKey">_NS:1193</string>
<int key="NSsFlags">133682</int>
<reference key="NSVScroller" ref="793017783"/>
<reference key="NSHScroller" ref="749408378"/>
<reference key="NSContentView" ref="839179094"/>
<reference key="NSHeaderClipView" ref="764521728"/>
<reference key="NSVScroller" ref="635678385"/>
<reference key="NSHScroller" ref="1034196638"/>
<reference key="NSContentView" ref="482978525"/>
<reference key="NSHeaderClipView" ref="106724295"/>
<bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
</object>
<object class="NSButton" id="341829567">
<object class="NSButton" id="253140813">
<reference key="NSNextResponder" ref="1006"/>
<int key="NSvFlags">268</int>
<string key="NSFrame">{{625, 458}, {138, 18}}</string>
<reference key="NSSuperview" ref="1006"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="44119519"/>
<reference key="NSNextKeyView" ref="333350533"/>
<string key="NSReuseIdentifierKey">_NS:239</string>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="185433516">
<object class="NSButtonCell" key="NSCell" id="770800797">
<int key="NSCellFlags">-2080244224</int>
<int key="NSCellFlags2">0</int>
<string key="NSContents">Copy to Collection</string>
<reference key="NSSupport" ref="919859977"/>
<reference key="NSSupport" ref="706852951"/>
<string key="NSCellIdentifier">_NS:239</string>
<reference key="NSControlView" ref="341829567"/>
<reference key="NSControlView" ref="253140813"/>
<int key="NSButtonFlags">1211912703</int>
<int key="NSButtonFlags2">2</int>
<object class="NSCustomResource" key="NSNormalImage">
@ -383,65 +381,65 @@
<int key="NSPeriodicInterval">25</int>
</object>
</object>
<object class="NSPopUpButton" id="747197698">
<object class="NSPopUpButton" id="19618719">
<reference key="NSNextResponder" ref="1006"/>
<int key="NSvFlags">268</int>
<string key="NSFrame">{{137, 456}, {371, 26}}</string>
<reference key="NSSuperview" ref="1006"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="341829567"/>
<reference key="NSNextKeyView" ref="253140813"/>
<string key="NSReuseIdentifierKey">_NS:179</string>
<bool key="NSEnabled">YES</bool>
<object class="NSPopUpButtonCell" key="NSCell" id="544340354">
<object class="NSPopUpButtonCell" key="NSCell" id="247335376">
<int key="NSCellFlags">-2076049856</int>
<int key="NSCellFlags2">2048</int>
<reference key="NSSupport" ref="919859977"/>
<reference key="NSSupport" ref="706852951"/>
<string key="NSCellIdentifier">_NS:179</string>
<reference key="NSControlView" ref="747197698"/>
<reference key="NSControlView" ref="19618719"/>
<int key="NSButtonFlags">109199615</int>
<int key="NSButtonFlags2">129</int>
<string key="NSAlternateContents"/>
<string key="NSKeyEquivalent"/>
<int key="NSPeriodicDelay">400</int>
<int key="NSPeriodicInterval">75</int>
<object class="NSMenuItem" key="NSMenuItem" id="1007671438">
<reference key="NSMenu" ref="965701775"/>
<object class="NSMenuItem" key="NSMenuItem" id="1014844797">
<reference key="NSMenu" ref="694863336"/>
<string key="NSTitle">Modification Date</string>
<string key="NSKeyEquiv"/>
<int key="NSKeyEquivModMask">1048576</int>
<int key="NSMnemonicLoc">2147483647</int>
<int key="NSState">1</int>
<object class="NSCustomResource" key="NSOnImage" id="430826325">
<object class="NSCustomResource" key="NSOnImage" id="218087945">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">NSMenuCheckmark</string>
</object>
<object class="NSCustomResource" key="NSMixedImage" id="353856404">
<object class="NSCustomResource" key="NSMixedImage" id="207621535">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">NSMenuMixedState</string>
</object>
<string key="NSAction">_popUpItemAction:</string>
<reference key="NSTarget" ref="544340354"/>
<reference key="NSTarget" ref="247335376"/>
</object>
<bool key="NSMenuItemRespectAlignment">YES</bool>
<object class="NSMenu" key="NSMenu" id="965701775">
<object class="NSMenu" key="NSMenu" id="694863336">
<string key="NSTitle">OtherViews</string>
<object class="NSMutableArray" key="NSMenuItems">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="1007671438"/>
<object class="NSMenuItem" id="566446933">
<reference key="NSMenu" ref="965701775"/>
<reference ref="1014844797"/>
<object class="NSMenuItem" id="398634218">
<reference key="NSMenu" ref="694863336"/>
<bool key="NSIsDisabled">YES</bool>
<bool key="NSIsSeparator">YES</bool>
<string key="NSTitle"/>
<string key="NSKeyEquiv"/>
<int key="NSMnemonicLoc">2147483647</int>
<reference key="NSOnImage" ref="430826325"/>
<reference key="NSMixedImage" ref="353856404"/>
<reference key="NSOnImage" ref="218087945"/>
<reference key="NSMixedImage" ref="207621535"/>
<string key="NSAction">_popUpItemAction:</string>
<reference key="NSTarget" ref="544340354"/>
<reference key="NSTarget" ref="247335376"/>
</object>
</object>
<reference key="NSMenuFont" ref="919859977"/>
<reference key="NSMenuFont" ref="706852951"/>
</object>
<int key="NSPreferredEdge">1</int>
<bool key="NSUsesItemFromMenu">YES</bool>
@ -449,61 +447,51 @@
<int key="NSArrowPosition">2</int>
</object>
</object>
<object class="NSTextField" id="893229924">
<object class="NSTextField" id="988925013">
<reference key="NSNextResponder" ref="1006"/>
<int key="NSvFlags">268</int>
<string key="NSFrame">{{17, 462}, {118, 17}}</string>
<reference key="NSSuperview" ref="1006"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="747197698"/>
<reference key="NSNextKeyView" ref="19618719"/>
<string key="NSReuseIdentifierKey">_NS:3936</string>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="894143421">
<object class="NSTextFieldCell" key="NSCell" id="509932856">
<int key="NSCellFlags">68288064</int>
<int key="NSCellFlags2">272630784</int>
<string key="NSContents">Derive Date From:</string>
<reference key="NSSupport" ref="919859977"/>
<reference key="NSSupport" ref="706852951"/>
<string key="NSCellIdentifier">_NS:3936</string>
<reference key="NSControlView" ref="893229924"/>
<reference key="NSControlView" ref="988925013"/>
<object class="NSColor" key="NSBackgroundColor">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">controlColor</string>
<reference key="NSColor" ref="161252341"/>
<reference key="NSColor" ref="382934078"/>
</object>
<reference key="NSTextColor" ref="1038699070"/>
<reference key="NSTextColor" ref="427298897"/>
</object>
</object>
</object>
<string key="NSFrameSize">{781, 490}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="893229924"/>
<reference key="NSNextKeyView" ref="988925013"/>
</object>
<string key="NSScreenRect">{{0, 0}, {2560, 1418}}</string>
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
<bool key="NSWindowIsRestorable">YES</bool>
</object>
<object class="NSUserDefaultsController" id="949954244">
<object class="NSUserDefaultsController" id="877524092">
<bool key="NSSharedInstance">YES</bool>
</object>
<object class="NSArrayController" id="1018878332">
<object class="NSArrayController" id="937447858">
<object class="NSMutableArray" key="NSDeclaredKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>pathExtension</string>
<string>url</string>
<string>date</string>
</object>
<string key="NSObjectClassName">NSURL</string>
<object class="_NSManagedProxy" key="_NSManagedProxy"/>
<bool key="NSAvoidsEmptySelection">YES</bool>
<bool key="NSPreservesSelection">YES</bool>
<bool key="NSSelectsInsertedObjects">YES</bool>
<bool key="NSFilterRestrictsInsertion">YES</bool>
<bool key="NSClearsFilterPredicateOnInsertion">YES</bool>
</object>
<object class="NSArrayController" id="125212540">
<string key="NSObjectClassName">NSDate</string>
<object class="_NSManagedProxy" key="_NSManagedProxy"/>
<bool key="NSAvoidsEmptySelection">YES</bool>
<bool key="NSPreservesSelection">YES</bool>
<bool key="NSSelectsInsertedObjects">YES</bool>
<bool key="NSFilterRestrictsInsertion">YES</bool>
@ -525,7 +513,7 @@
<object class="IBActionConnection" key="connection">
<string key="label">endSheet:</string>
<reference key="source" ref="1001"/>
<reference key="destination" ref="813678091"/>
<reference key="destination" ref="128002513"/>
</object>
<int key="connectionID">41</int>
</object>
@ -533,82 +521,57 @@
<object class="IBActionConnection" key="connection">
<string key="label">endSheet:</string>
<reference key="source" ref="1001"/>
<reference key="destination" ref="715776734"/>
<reference key="destination" ref="169511556"/>
</object>
<int key="connectionID">42</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">contentArray: urls</string>
<reference key="source" ref="1018878332"/>
<string key="label">value: copyMedia</string>
<reference key="source" ref="253140813"/>
<reference key="destination" ref="1001"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="1018878332"/>
<reference key="NSSource" ref="253140813"/>
<reference key="NSDestination" ref="1001"/>
<string key="NSLabel">contentArray: urls</string>
<string key="NSBinding">contentArray</string>
<string key="NSKeyPath">urls</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">46</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">contentArray: dates</string>
<reference key="source" ref="125212540"/>
<reference key="destination" ref="1001"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="125212540"/>
<reference key="NSDestination" ref="1001"/>
<string key="NSLabel">contentArray: dates</string>
<string key="NSBinding">contentArray</string>
<string key="NSKeyPath">dates</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">49</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: arrangedObjects</string>
<reference key="source" ref="101430055"/>
<reference key="destination" ref="125212540"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="101430055"/>
<reference key="NSDestination" ref="125212540"/>
<string key="NSLabel">value: arrangedObjects</string>
<string key="NSLabel">value: copyMedia</string>
<string key="NSBinding">value</string>
<string key="NSKeyPath">arrangedObjects</string>
<string key="NSKeyPath">copyMedia</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">68</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">contentArray: media</string>
<reference key="source" ref="937447858"/>
<reference key="destination" ref="1001"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="937447858"/>
<reference key="NSDestination" ref="1001"/>
<string key="NSLabel">contentArray: media</string>
<string key="NSBinding">contentArray</string>
<string key="NSKeyPath">media</string>
<object class="NSDictionary" key="NSOptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>NSAllowsEditingMultipleValuesSelection</string>
<string>NSRaisesForNotApplicableKeys</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<boolean value="NO"/>
<boolean value="NO"/>
</object>
<string key="NS.key.0">NSConditionallySetsEditable</string>
<boolean value="NO" key="NS.object.0"/>
</object>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">65</int>
<int key="connectionID">74</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: arrangedObjects.pathExtension</string>
<reference key="source" ref="401382727"/>
<reference key="destination" ref="1018878332"/>
<string key="label">value: arrangedObjects.url.lastPathComponent</string>
<reference key="source" ref="767196666"/>
<reference key="destination" ref="937447858"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="401382727"/>
<reference key="NSDestination" ref="1018878332"/>
<string key="NSLabel">value: arrangedObjects.pathExtension</string>
<reference key="NSSource" ref="767196666"/>
<reference key="NSDestination" ref="937447858"/>
<string key="NSLabel">value: arrangedObjects.url.lastPathComponent</string>
<string key="NSBinding">value</string>
<string key="NSKeyPath">arrangedObjects.pathExtension</string>
<string key="NSKeyPath">arrangedObjects.url.lastPathComponent</string>
<object class="NSDictionary" key="NSOptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
@ -627,23 +590,23 @@
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">66</int>
<int key="connectionID">75</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: copyMedia</string>
<reference key="source" ref="341829567"/>
<reference key="destination" ref="1001"/>
<string key="label">value: arrangedObjects.date</string>
<reference key="source" ref="309449751"/>
<reference key="destination" ref="937447858"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="341829567"/>
<reference key="NSDestination" ref="1001"/>
<string key="NSLabel">value: copyMedia</string>
<reference key="NSSource" ref="309449751"/>
<reference key="NSDestination" ref="937447858"/>
<string key="NSLabel">value: arrangedObjects.date</string>
<string key="NSBinding">value</string>
<string key="NSKeyPath">copyMedia</string>
<string key="NSKeyPath">arrangedObjects.date</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">68</int>
<int key="connectionID">76</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
@ -687,199 +650,193 @@
<reference key="object" ref="1006"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="813678091"/>
<reference ref="715776734"/>
<reference ref="44119519"/>
<reference ref="341829567"/>
<reference ref="893229924"/>
<reference ref="747197698"/>
<reference ref="128002513"/>
<reference ref="169511556"/>
<reference ref="333350533"/>
<reference ref="253140813"/>
<reference ref="988925013"/>
<reference ref="19618719"/>
</object>
<reference key="parent" ref="1005"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">3</int>
<reference key="object" ref="813678091"/>
<reference key="object" ref="128002513"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="954893509"/>
<reference ref="282547565"/>
</object>
<reference key="parent" ref="1006"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4</int>
<reference key="object" ref="954893509"/>
<reference key="parent" ref="813678091"/>
<reference key="object" ref="282547565"/>
<reference key="parent" ref="128002513"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">5</int>
<reference key="object" ref="715776734"/>
<reference key="object" ref="169511556"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="459093726"/>
<reference ref="778487738"/>
</object>
<reference key="parent" ref="1006"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">6</int>
<reference key="object" ref="459093726"/>
<reference key="parent" ref="715776734"/>
<reference key="object" ref="778487738"/>
<reference key="parent" ref="169511556"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">7</int>
<reference key="object" ref="44119519"/>
<reference key="object" ref="333350533"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="793017783"/>
<reference ref="17148666"/>
<reference ref="749408378"/>
<reference ref="128275161"/>
<reference ref="635678385"/>
<reference ref="678384619"/>
<reference ref="1034196638"/>
<reference ref="879438073"/>
</object>
<reference key="parent" ref="1006"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">8</int>
<reference key="object" ref="793017783"/>
<reference key="parent" ref="44119519"/>
<reference key="object" ref="635678385"/>
<reference key="parent" ref="333350533"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">9</int>
<reference key="object" ref="17148666"/>
<reference key="parent" ref="44119519"/>
<reference key="object" ref="678384619"/>
<reference key="parent" ref="333350533"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">10</int>
<reference key="object" ref="749408378"/>
<reference key="parent" ref="44119519"/>
<reference key="object" ref="1034196638"/>
<reference key="parent" ref="333350533"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">11</int>
<reference key="object" ref="128275161"/>
<reference key="object" ref="879438073"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="401382727"/>
<reference ref="101430055"/>
<reference ref="767196666"/>
<reference ref="309449751"/>
</object>
<reference key="parent" ref="44119519"/>
<reference key="parent" ref="333350533"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">12</int>
<reference key="object" ref="401382727"/>
<reference key="object" ref="767196666"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="141316995"/>
<reference ref="437451264"/>
</object>
<reference key="parent" ref="128275161"/>
<reference key="parent" ref="879438073"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">13</int>
<reference key="object" ref="101430055"/>
<reference key="object" ref="309449751"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="801009663"/>
<reference ref="989397518"/>
</object>
<reference key="parent" ref="128275161"/>
<reference key="parent" ref="879438073"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">14</int>
<reference key="object" ref="801009663"/>
<reference key="object" ref="989397518"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="101126637"/>
<reference ref="947998294"/>
</object>
<reference key="parent" ref="101430055"/>
<reference key="parent" ref="309449751"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">15</int>
<reference key="object" ref="141316995"/>
<reference key="parent" ref="401382727"/>
<reference key="object" ref="437451264"/>
<reference key="parent" ref="767196666"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">16</int>
<reference key="object" ref="341829567"/>
<reference key="object" ref="253140813"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="185433516"/>
<reference ref="770800797"/>
</object>
<reference key="parent" ref="1006"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">17</int>
<reference key="object" ref="185433516"/>
<reference key="parent" ref="341829567"/>
<reference key="object" ref="770800797"/>
<reference key="parent" ref="253140813"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">18</int>
<reference key="object" ref="747197698"/>
<reference key="object" ref="19618719"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="544340354"/>
<reference ref="247335376"/>
</object>
<reference key="parent" ref="1006"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">19</int>
<reference key="object" ref="544340354"/>
<reference key="object" ref="247335376"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="965701775"/>
<reference ref="694863336"/>
</object>
<reference key="parent" ref="747197698"/>
<reference key="parent" ref="19618719"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">20</int>
<reference key="object" ref="965701775"/>
<reference key="object" ref="694863336"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="1007671438"/>
<reference ref="566446933"/>
<reference ref="1014844797"/>
<reference ref="398634218"/>
</object>
<reference key="parent" ref="544340354"/>
<reference key="parent" ref="247335376"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">21</int>
<reference key="object" ref="1007671438"/>
<reference key="parent" ref="965701775"/>
<reference key="object" ref="1014844797"/>
<reference key="parent" ref="694863336"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">25</int>
<reference key="object" ref="893229924"/>
<reference key="object" ref="988925013"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="894143421"/>
<reference ref="509932856"/>
</object>
<reference key="parent" ref="1006"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">26</int>
<reference key="object" ref="894143421"/>
<reference key="parent" ref="893229924"/>
<reference key="object" ref="509932856"/>
<reference key="parent" ref="988925013"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">27</int>
<reference key="object" ref="566446933"/>
<reference key="parent" ref="965701775"/>
<reference key="object" ref="398634218"/>
<reference key="parent" ref="694863336"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">28</int>
<reference key="object" ref="101126637"/>
<reference key="parent" ref="801009663"/>
<reference key="object" ref="947998294"/>
<reference key="parent" ref="989397518"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">32</int>
<reference key="object" ref="949954244"/>
<reference key="object" ref="877524092"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">43</int>
<reference key="object" ref="1018878332"/>
<reference key="object" ref="937447858"/>
<reference key="parent" ref="0"/>
<string key="objectName">URLs</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">44</int>
<reference key="object" ref="125212540"/>
<reference key="parent" ref="0"/>
<string key="objectName">Dates</string>
<string key="objectName">Media</string>
</object>
</object>
</object>
@ -915,7 +872,6 @@
<string>32.IBPluginDependency</string>
<string>4.IBPluginDependency</string>
<string>43.IBPluginDependency</string>
<string>44.IBPluginDependency</string>
<string>5.IBPluginDependency</string>
<string>6.IBPluginDependency</string>
<string>7.IBPluginDependency</string>
@ -957,7 +913,6 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
@ -972,7 +927,7 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
<int key="maxID">68</int>
<int key="maxID">76</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">