Update MP4Dump
This commit is contained in:
1 parent
2e5fc7f773
commit
d9a4f56fc4
3 files changed
+24
-16
No files matched your search
@@ -1,8 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="12106.1" systemVersion="16E154a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<deployment defaultVersion="1080" identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="12106.1"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="MyDocument">
|
||||
@@ -13,7 +14,7 @@
|
||||
</connections>
|
||||
</customObject>
|
||||
<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"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<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"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<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"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<size key="minSize" width="637" height="519"/>
|
||||
<size key="maxSize" width="1261" height="10000000"/>
|
||||
<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>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
@@ -57,7 +56,7 @@
|
||||
<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">
|
||||
<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">
|
||||
<items>
|
||||
<menuItem title="Error" tag="1" id="100029">
|
||||
@@ -105,6 +104,6 @@
|
||||
<outlet property="delegate" destination="-2" id="17"/>
|
||||
</connections>
|
||||
</window>
|
||||
<customObject id="-3" userLabel="Application"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
</objects>
|
||||
</document>
|
||||
</document>
|
||||
@@ -13,9 +13,9 @@
|
||||
{
|
||||
IBOutlet NSTextView * textView;
|
||||
IBOutlet NSPopUpButton *logLevelButton;
|
||||
NSString * result;
|
||||
NSString *result;
|
||||
}
|
||||
|
||||
- (IBAction) setLogLevel: (id) sender;
|
||||
- (IBAction)setLogLevel:(id)sender;
|
||||
|
||||
@end
|
||||
@@ -11,13 +11,22 @@
|
||||
|
||||
extern NSString *libraryPath;
|
||||
|
||||
@interface MyDocument ()
|
||||
|
||||
@property (nonatomic, readonly) NSDictionary *attributes;
|
||||
|
||||
@end
|
||||
|
||||
@implementation MyDocument
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
self = [super init];
|
||||
if (self) {
|
||||
|
||||
NSMutableParagraphStyle *ps = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
|
||||
_attributes = @{ NSFontAttributeName: [NSFont fontWithName:@"Monaco" size:11],
|
||||
NSParagraphStyleAttributeName: ps,
|
||||
NSForegroundColorAttributeName: NSColor.textColor };
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@@ -36,13 +45,13 @@ extern NSString *libraryPath;
|
||||
}
|
||||
|
||||
[self _resetTextView];
|
||||
NSAttributedString *attributedString = [[NSAttributedString alloc] initWithString:result];
|
||||
|
||||
NSAttributedString *attributedString = [[NSAttributedString alloc] initWithString:result attributes:self.attributes];
|
||||
[textView.textStorage appendAttributedString:attributedString];
|
||||
}
|
||||
|
||||
- (void)_resetTextView
|
||||
{
|
||||
textView.font = [NSFont fontWithName:@"Monaco" size:10];
|
||||
textView.string = @"";
|
||||
[textView setContinuousSpellCheckingEnabled:NO];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user