1 parent
adba28a54f
commit
7cac6db058
3 files changed
+14
-29
No files matched your search
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11761" systemVersion="16C48b" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11761"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11762"/>
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
<rect key="frame" x="1" y="0.0" width="690" height="144"/>
|
<rect key="frame" x="1" y="0.0" width="690" height="144"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" multipleSelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" headerView="100032" viewBased="YES" id="100031" customClass="SBTableView">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" headerView="100032" viewBased="YES" id="100031" customClass="SBTableView">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="690" height="121"/>
|
<rect key="frame" x="0.0" y="0.0" width="690" height="121"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<size key="intercellSpacing" width="3" height="2"/>
|
<size key="intercellSpacing" width="3" height="2"/>
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11198.2" systemVersion="16A294a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11198.2"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11762"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="SBEmptyViewController">
|
<customObject id="-2" userLabel="File's Owner" customClass="SBEmptyViewController">
|
||||||
@@ -18,28 +19,7 @@
|
|||||||
<subviews>
|
<subviews>
|
||||||
<tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="5">
|
<tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="5">
|
||||||
<rect key="frame" x="-11" y="-12" width="502" height="279"/>
|
<rect key="frame" x="-11" y="-12" width="502" height="279"/>
|
||||||
<tabViewItems>
|
<tabViewItems/>
|
||||||
<tabViewItem label="Empty" identifier="1" id="6">
|
|
||||||
<view key="view" id="9">
|
|
||||||
<rect key="frame" x="10" y="29" width="482" height="237"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
||||||
<subviews>
|
|
||||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="2">
|
|
||||||
<rect key="frame" x="179" y="110" width="124" height="17"/>
|
|
||||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Nothing to see here" id="3">
|
|
||||||
<font key="font" metaFont="system"/>
|
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
||||||
</textFieldCell>
|
|
||||||
</textField>
|
|
||||||
</subviews>
|
|
||||||
<constraints>
|
|
||||||
<constraint firstItem="2" firstAttribute="centerY" secondItem="9" secondAttribute="centerY" id="6gC-EI-Yl2"/>
|
|
||||||
<constraint firstItem="2" firstAttribute="centerX" secondItem="9" secondAttribute="centerX" id="ufH-wO-irV"/>
|
|
||||||
</constraints>
|
|
||||||
</view>
|
|
||||||
</tabViewItem>
|
|
||||||
</tabViewItems>
|
|
||||||
</tabView>
|
</tabView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
|
|||||||
@@ -705,7 +705,7 @@ static NSDictionary *_detailMonospacedAttr;
|
|||||||
|
|
||||||
id controller = nil;
|
id controller = nil;
|
||||||
BOOL metadataRow = (row == -1 || row == 0);
|
BOOL metadataRow = (row == -1 || row == 0);
|
||||||
id track = !metadataRow ? [self trackAtAtTableRow:row] : nil;
|
id track = !metadataRow && [self.tracksTable numberOfSelectedRows] == 1 ? [self trackAtAtTableRow:row] : nil;
|
||||||
|
|
||||||
if (metadataRow) {
|
if (metadataRow) {
|
||||||
controller = [[SBMovieViewController alloc] initWithNibName:@"MovieView" bundle:nil];
|
controller = [[SBMovieViewController alloc] initWithNibName:@"MovieView" bundle:nil];
|
||||||
@@ -937,12 +937,17 @@ static NSDictionary *_detailMonospacedAttr;
|
|||||||
|
|
||||||
- (IBAction)deleteTrack:(id)sender
|
- (IBAction)deleteTrack:(id)sender
|
||||||
{
|
{
|
||||||
|
NSMutableIndexSet *trackIndexes = [NSMutableIndexSet indexSet];
|
||||||
|
|
||||||
if (self.tracksTable.selectedRow == -1 || self.tracksTable.editedRow != -1) {
|
if (self.tracksTable.selectedRow == -1 || self.tracksTable.editedRow != -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
[self.mp4 removeTrackAtIndex:[self trackIndexAtAtTableRow:self.tracksTable.selectedRow]];
|
[self.tracksTable.selectedRowIndexes enumerateIndexesUsingBlock:^(NSUInteger index, BOOL *stop) {
|
||||||
|
[trackIndexes addIndex:[self trackIndexAtAtTableRow:index]];
|
||||||
|
}];
|
||||||
|
|
||||||
|
[self.mp4 removeTracksAtIndexes:trackIndexes];
|
||||||
[self.mp4 organizeAlternateGroups];
|
[self.mp4 organizeAlternateGroups];
|
||||||
|
|
||||||
[self.tracksTable reloadData];
|
[self.tracksTable reloadData];
|
||||||
|
|||||||
Reference in new issue
Block a user