MacGui: random fixes.
This commit is contained in:
1 parent
194fbedc7c
commit
5d46d627d7
6 files changed
+21
-16
No files matched your search
@@ -315,11 +315,15 @@ NSInteger sortMP42Metadata(id ep1, id ep2, void *context)
|
||||
NSString *season = nil;
|
||||
if (![[store valueForKey:@"season"] isEqualToString:@""]) {
|
||||
NSArray *sa = [[s lowercaseString] componentsSeparatedByString:[NSString stringWithFormat:@", %@ ", [store valueForKey:@"season"]]];
|
||||
if ([sa count] > 1) {
|
||||
season = [sa objectAtIndex:1];
|
||||
} else {
|
||||
season = @"1";
|
||||
}
|
||||
if (sa.count <= 1) {
|
||||
sa = [[s lowercaseString] componentsSeparatedByString:[NSString stringWithFormat:@", %@ ", @"book"]];
|
||||
}
|
||||
|
||||
if ([sa count] > 1) {
|
||||
season = [NSString stringWithFormat:@"%ld",(long) [[sa objectAtIndex:1] integerValue]];
|
||||
} else {
|
||||
season = @"1";
|
||||
}
|
||||
}
|
||||
if (season) {
|
||||
[metadata setTag:season forKey:@"TV Season"];
|
||||
|
||||
@@ -606,11 +606,8 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
|
||||
[[importWindow window] orderOut:nil];
|
||||
[importWindow autorelease], importWindow = nil;
|
||||
|
||||
// IKImageBrowserView is a bit problematic, do the refresh at the end of the run loop
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[fileTracksTable reloadData];
|
||||
[self tableViewSelectionDidChange:nil];
|
||||
});
|
||||
[fileTracksTable reloadData];
|
||||
[self tableViewSelectionDidChange:nil];
|
||||
}
|
||||
|
||||
- (IBAction)sendToQueue:(id)sender
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
- (instancetype)init {
|
||||
if ((self = [super initWithWindowNibName:@"SBLogWindow"])) {
|
||||
[self window];
|
||||
(void)[self window];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
@@ -289,8 +289,10 @@
|
||||
// Convert from a file reference url to a normal url
|
||||
// the file will be replaced if optimized, and the reference url
|
||||
// may point to nil
|
||||
[self willChangeValueForKey:@"fileURL"];
|
||||
[_fileURL autorelease];
|
||||
_fileURL = [[self.URL filePathURL] retain];
|
||||
[self didChangeValueForKey:@"fileURL"];
|
||||
|
||||
if (!self.cancelled) {
|
||||
if ([self.URL isEqualTo:self.destURL] && [self.mp4File hasFileRepresentation]) {
|
||||
@@ -308,7 +310,9 @@
|
||||
|
||||
// Optimize the file
|
||||
if (!self.cancelled && optimize) {
|
||||
self.localizedWorkingDescription = NSLocalizedString(@"Optimizing", @"");
|
||||
noErr = [self.mp4File optimize];
|
||||
self.localizedWorkingDescription = nil;
|
||||
}
|
||||
|
||||
if (!noErr) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6250" systemVersion="14A389" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="7515.2" systemVersion="14D72i" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<development version="5100" identifier="xcode"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="6250"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="7515.2"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="SBDocument">
|
||||
@@ -59,7 +59,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="620" height="19"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableColumns>
|
||||
<tableColumn identifier="trackId" editable="NO" width="30" minWidth="30" maxWidth="38" id="100033">
|
||||
@@ -330,7 +330,6 @@
|
||||
<toolbarItem reference="100164"/>
|
||||
<toolbarItem reference="100320"/>
|
||||
<toolbarItem reference="100319"/>
|
||||
<toolbarItem reference="100312"/>
|
||||
<toolbarItem reference="100321"/>
|
||||
<toolbarItem reference="100302"/>
|
||||
</defaultToolbarItems>
|
||||
@@ -338,6 +337,7 @@
|
||||
<connections>
|
||||
<outlet property="delegate" destination="-2" id="17"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="402" y="14"/>
|
||||
</window>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" visibleAtLaunch="NO" animationBehavior="default" id="100175" userLabel="Saving">
|
||||
|
||||
@@ -587,7 +587,7 @@
|
||||
2A37F4A9FDCFA73011CA2CEA /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0500;
|
||||
LastUpgradeCheck = 0630;
|
||||
};
|
||||
buildConfigurationList = C05733CB08A9546B00998B17 /* Build configuration list for PBXProject "Subler" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
|
||||
Reference in new issue
Block a user