Update MP4Dump
This commit is contained in:
1 parent
2e5fc7f773
commit
d9a4f56fc4
2 files changed
+21
-13
No files matched your search
@@ -1,8 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="12106.1" systemVersion="16E154a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment defaultVersion="1080" identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="12106.1"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="MyDocument">
|
<customObject id="-2" userLabel="File's Owner" customClass="MyDocument">
|
||||||
@@ -13,7 +14,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</customObject>
|
</customObject>
|
||||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" wantsToBeColor="NO" visibleAtLaunch="NO" animationBehavior="default" id="5" userLabel="Window">
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="5" userLabel="Window">
|
||||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
||||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||||
<rect key="contentRect" x="69" y="418" width="637" height="542"/>
|
<rect key="contentRect" x="69" y="418" width="637" height="542"/>
|
||||||
@@ -30,15 +31,13 @@
|
|||||||
<rect key="frame" x="1" y="1" width="637" height="519"/>
|
<rect key="frame" x="1" y="1" width="637" height="519"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textView importsGraphics="NO" richText="NO" findStyle="bar" allowsUndo="YES" verticallyResizable="YES" allowsNonContiguousLayout="YES" id="100024">
|
<textView editable="NO" importsGraphics="NO" richText="NO" findStyle="bar" id="100024">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="637" height="519"/>
|
<rect key="frame" x="0.0" y="0.0" width="637" height="519"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
<size key="minSize" width="637" height="519"/>
|
<size key="minSize" width="637" height="519"/>
|
||||||
<size key="maxSize" width="1261" height="10000000"/>
|
<size key="maxSize" width="1261" height="10000000"/>
|
||||||
<color key="insertionPointColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
|
<color key="insertionPointColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
<size key="minSize" width="637" height="519"/>
|
|
||||||
<size key="maxSize" width="1261" height="10000000"/>
|
|
||||||
</textView>
|
</textView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
@@ -57,7 +56,7 @@
|
|||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
<popUpButtonCell key="cell" type="bevel" title="Info" bezelStyle="regularSquare" imagePosition="left" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="bezel" tag="3" inset="2" selectedItem="100042" id="100026">
|
<popUpButtonCell key="cell" type="bevel" title="Info" bezelStyle="regularSquare" imagePosition="left" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="bezel" tag="3" inset="2" selectedItem="100042" id="100026">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="menu"/>
|
||||||
<menu key="menu" title="OtherViews" id="100027">
|
<menu key="menu" title="OtherViews" id="100027">
|
||||||
<items>
|
<items>
|
||||||
<menuItem title="Error" tag="1" id="100029">
|
<menuItem title="Error" tag="1" id="100029">
|
||||||
@@ -105,6 +104,6 @@
|
|||||||
<outlet property="delegate" destination="-2" id="17"/>
|
<outlet property="delegate" destination="-2" id="17"/>
|
||||||
</connections>
|
</connections>
|
||||||
</window>
|
</window>
|
||||||
<customObject id="-3" userLabel="Application"/>
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
@@ -11,13 +11,22 @@
|
|||||||
|
|
||||||
extern NSString *libraryPath;
|
extern NSString *libraryPath;
|
||||||
|
|
||||||
|
@interface MyDocument ()
|
||||||
|
|
||||||
|
@property (nonatomic, readonly) NSDictionary *attributes;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
@implementation MyDocument
|
@implementation MyDocument
|
||||||
|
|
||||||
- (instancetype)init
|
- (instancetype)init
|
||||||
{
|
{
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
|
NSMutableParagraphStyle *ps = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
|
||||||
|
_attributes = @{ NSFontAttributeName: [NSFont fontWithName:@"Monaco" size:11],
|
||||||
|
NSParagraphStyleAttributeName: ps,
|
||||||
|
NSForegroundColorAttributeName: NSColor.textColor };
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
@@ -36,13 +45,13 @@ extern NSString *libraryPath;
|
|||||||
}
|
}
|
||||||
|
|
||||||
[self _resetTextView];
|
[self _resetTextView];
|
||||||
NSAttributedString *attributedString = [[NSAttributedString alloc] initWithString:result];
|
|
||||||
|
NSAttributedString *attributedString = [[NSAttributedString alloc] initWithString:result attributes:self.attributes];
|
||||||
[textView.textStorage appendAttributedString:attributedString];
|
[textView.textStorage appendAttributedString:attributedString];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_resetTextView
|
- (void)_resetTextView
|
||||||
{
|
{
|
||||||
textView.font = [NSFont fontWithName:@"Monaco" size:10];
|
|
||||||
textView.string = @"";
|
textView.string = @"";
|
||||||
[textView setContinuousSpellCheckingEnabled:NO];
|
[textView setContinuousSpellCheckingEnabled:NO];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user