Mark missing media

This commit is contained in:
Matthias Neeracher 2011-08-18 18:28:01 +02:00
parent ec626b6cb9
commit 8614de9959
4 changed files with 78 additions and 1 deletions

View File

@ -30,6 +30,7 @@
95BCFA2E13F8A3AD000F650F /* MAShortenQTTime.mm in Sources */ = {isa = PBXBuildFile; fileRef = 95BCFA2D13F8A3AD000F650F /* MAShortenQTTime.mm */; }; 95BCFA2E13F8A3AD000F650F /* MAShortenQTTime.mm in Sources */ = {isa = PBXBuildFile; fileRef = 95BCFA2D13F8A3AD000F650F /* MAShortenQTTime.mm */; };
95C534E013F732A200A07932 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 95C534DE13F732A200A07932 /* Localizable.strings */; }; 95C534E013F732A200A07932 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 95C534DE13F732A200A07932 /* Localizable.strings */; };
95CA841113FC149B00AE5AC4 /* MATokenFieldCell.mm in Sources */ = {isa = PBXBuildFile; fileRef = 95CA841013FC149B00AE5AC4 /* MATokenFieldCell.mm */; }; 95CA841113FC149B00AE5AC4 /* MATokenFieldCell.mm in Sources */ = {isa = PBXBuildFile; fileRef = 95CA841013FC149B00AE5AC4 /* MATokenFieldCell.mm */; };
95E8C26713FD72D2004E9839 /* MAColorForURL.mm in Sources */ = {isa = PBXBuildFile; fileRef = 95E8C26613FD72D2004E9839 /* MAColorForURL.mm */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
@ -69,6 +70,8 @@
95C534DF13F732A200A07932 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; }; 95C534DF13F732A200A07932 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
95CA840F13FC149B00AE5AC4 /* MATokenFieldCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MATokenFieldCell.h; sourceTree = "<group>"; }; 95CA840F13FC149B00AE5AC4 /* MATokenFieldCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MATokenFieldCell.h; sourceTree = "<group>"; };
95CA841013FC149B00AE5AC4 /* MATokenFieldCell.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MATokenFieldCell.mm; sourceTree = "<group>"; }; 95CA841013FC149B00AE5AC4 /* MATokenFieldCell.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MATokenFieldCell.mm; sourceTree = "<group>"; };
95E8C26513FD72D2004E9839 /* MAColorForURL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MAColorForURL.h; sourceTree = "<group>"; };
95E8C26613FD72D2004E9839 /* MAColorForURL.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MAColorForURL.mm; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
@ -180,6 +183,8 @@
950BB78513F2D95500D8E669 /* MADocWindow.mm */, 950BB78513F2D95500D8E669 /* MADocWindow.mm */,
95BCFA2C13F8A3AD000F650F /* MAShortenQTTime.h */, 95BCFA2C13F8A3AD000F650F /* MAShortenQTTime.h */,
95BCFA2D13F8A3AD000F650F /* MAShortenQTTime.mm */, 95BCFA2D13F8A3AD000F650F /* MAShortenQTTime.mm */,
95E8C26513FD72D2004E9839 /* MAColorForURL.h */,
95E8C26613FD72D2004E9839 /* MAColorForURL.mm */,
); );
name = Classes; name = Classes;
sourceTree = "<group>"; sourceTree = "<group>";
@ -265,6 +270,7 @@
950BB7AD13F46ECF00D8E669 /* MAAppController.mm in Sources */, 950BB7AD13F46ECF00D8E669 /* MAAppController.mm in Sources */,
95BCFA2E13F8A3AD000F650F /* MAShortenQTTime.mm in Sources */, 95BCFA2E13F8A3AD000F650F /* MAShortenQTTime.mm in Sources */,
95CA841113FC149B00AE5AC4 /* MATokenFieldCell.mm in Sources */, 95CA841113FC149B00AE5AC4 /* MATokenFieldCell.mm in Sources */,
95E8C26713FD72D2004E9839 /* MAColorForURL.mm in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };

13
Medianno/MAColorForURL.h Normal file
View File

@ -0,0 +1,13 @@
//
// MAColorForURL.h
// Medianno
//
// Created by Matthias Neeracher on 8/18/11.
// Copyright 2011 Matthias Neeracher. All rights reserved.
//
@interface MAColorForURL : NSValueTransformer
@end

31
Medianno/MAColorForURL.mm Normal file
View File

@ -0,0 +1,31 @@
//
// MAColorForURL.mm
// Medianno
//
// Created by Matthias Neeracher on 8/18/11.
// Copyright 2011 Matthias Neeracher. All rights reserved.
//
#import "MAColorForURL.h"
@implementation MAColorForURL
+ (Class)transformedValueClass
{
return [NSColor class];
}
+ (BOOL)allowsReverseTransformation
{
return NO;
}
- (id)transformedValue:(id)value
{
if ([[NSFileManager defaultManager] fileExistsAtPath:value])
return [NSColor blackColor];
else
return [NSColor redColor];
}
@end

View File

@ -1314,6 +1314,26 @@
</object> </object>
<int key="connectionID">100243</int> <int key="connectionID">100243</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">textColor: arrangedObjects.media</string>
<reference key="source" ref="648169571"/>
<reference key="destination" ref="261388520"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="648169571"/>
<reference key="NSDestination" ref="261388520"/>
<string key="NSLabel">textColor: arrangedObjects.media</string>
<string key="NSBinding">textColor</string>
<string key="NSKeyPath">arrangedObjects.media</string>
<object class="NSDictionary" key="NSOptions">
<string key="NS.key.0">NSValueTransformerName</string>
<string key="NS.object.0">MAColorForURL</string>
</object>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">100246</int>
</object>
</object> </object>
<object class="IBMutableOrderedSet" key="objectRecords"> <object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects"> <object class="NSArray" key="orderedObjects">
@ -1860,7 +1880,7 @@
<reference key="dict.values" ref="0"/> <reference key="dict.values" ref="0"/>
</object> </object>
<nil key="sourceID"/> <nil key="sourceID"/>
<int key="maxID">100243</int> <int key="maxID">100246</int>
</object> </object>
<object class="IBClassDescriber" key="IBDocument.Classes"> <object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions"> <object class="NSMutableArray" key="referencedPartialClassDescriptions">
@ -1876,6 +1896,7 @@
<string>addMediaFiles:</string> <string>addMediaFiles:</string>
<string>exportMedia:</string> <string>exportMedia:</string>
<string>exportText:</string> <string>exportText:</string>
<string>importText:</string>
<string>mediaSkipBackward:</string> <string>mediaSkipBackward:</string>
<string>mediaSkipForward:</string> <string>mediaSkipForward:</string>
<string>toggleMediaPlay:</string> <string>toggleMediaPlay:</string>
@ -1889,6 +1910,7 @@
<string>id</string> <string>id</string>
<string>id</string> <string>id</string>
<string>id</string> <string>id</string>
<string>id</string>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="actionInfosByName"> <object class="NSMutableDictionary" key="actionInfosByName">
@ -1899,6 +1921,7 @@
<string>addMediaFiles:</string> <string>addMediaFiles:</string>
<string>exportMedia:</string> <string>exportMedia:</string>
<string>exportText:</string> <string>exportText:</string>
<string>importText:</string>
<string>mediaSkipBackward:</string> <string>mediaSkipBackward:</string>
<string>mediaSkipForward:</string> <string>mediaSkipForward:</string>
<string>toggleMediaPlay:</string> <string>toggleMediaPlay:</string>
@ -1921,6 +1944,10 @@
<string key="name">exportText:</string> <string key="name">exportText:</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBActionInfo">
<string key="name">importText:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo"> <object class="IBActionInfo">
<string key="name">mediaSkipBackward:</string> <string key="name">mediaSkipBackward:</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>