From 5d7bafae3d616b84a3932a8374db380d681585ac Mon Sep 17 00:00:00 2001 From: galad87 Date: Sat, 29 Aug 2015 11:42:54 +0200 Subject: [PATCH] Fixed a crash selected save after clicking the document close button, and small fixes --- .../English.lproj/ChapterView.xib | 1 + .../PropertyView/English.lproj/MovieView.xib | 8 +-- Classes/PropertyView/SBMovieViewController.h | 1 - Classes/PropertyView/SBMovieViewController.m | 13 ++-- Classes/SBApplication.h | 10 +-- Classes/SBApplication.m | 20 +++--- Classes/SBDocument.m | 41 ++++++----- Classes/SBExceptionAlertController.h | 18 ++--- Classes/SBExceptionAlertController.m | 12 ++-- Classes/SBImageBrowserView.m | 6 +- Classes/SBLogWindowController.h | 1 + Classes/SBMetadataSearchController.m | 14 ++-- Classes/SBQueueAction.m | 10 +-- Classes/SBTableView.h | 2 +- Classes/SBTableView.m | 8 ++- English.lproj/MainMenu.xib | 2 +- MP42Foundation | 2 +- Subler.xcodeproj/project.pbxproj | 72 +++++++++++++++++-- 18 files changed, 158 insertions(+), 83 deletions(-) diff --git a/Classes/PropertyView/English.lproj/ChapterView.xib b/Classes/PropertyView/English.lproj/ChapterView.xib index 05e8530..7cde9f3 100755 --- a/Classes/PropertyView/English.lproj/ChapterView.xib +++ b/Classes/PropertyView/English.lproj/ChapterView.xib @@ -398,6 +398,7 @@ + diff --git a/Classes/PropertyView/English.lproj/MovieView.xib b/Classes/PropertyView/English.lproj/MovieView.xib index 3ca026c..5d5383f 100755 --- a/Classes/PropertyView/English.lproj/MovieView.xib +++ b/Classes/PropertyView/English.lproj/MovieView.xib @@ -39,18 +39,18 @@ - + - + - + - + diff --git a/Classes/PropertyView/SBMovieViewController.h b/Classes/PropertyView/SBMovieViewController.h index 88cb1c1..2bc87c0 100755 --- a/Classes/PropertyView/SBMovieViewController.h +++ b/Classes/PropertyView/SBMovieViewController.h @@ -40,7 +40,6 @@ NS_ASSUME_NONNULL_BEGIN NSDictionary *tags; NSArray *_tagsArray; - NSArray *tagsMenu; NSDictionary *detailBoldAttr; NSMutableDictionary *dct; diff --git a/Classes/PropertyView/SBMovieViewController.m b/Classes/PropertyView/SBMovieViewController.m index d935a00..046928f 100755 --- a/Classes/PropertyView/SBMovieViewController.m +++ b/Classes/PropertyView/SBMovieViewController.m @@ -40,8 +40,8 @@ NSString *MetadataPBoardType = @"SublerMetadataPBoardType"; selector:@selector(updateSetsMenu:) name:@"SBPresetManagerUpdatedNotification" object:nil]; - tagsMenu = [[metadata writableMetadata] retain]; - for (id tag in tagsMenu) { + NSArray *tagsMenu = [metadata writableMetadata]; + for (NSString *tag in tagsMenu) { [tagList addItemWithTitle:tag]; } @@ -94,13 +94,13 @@ NSString *MetadataPBoardType = @"SublerMetadataPBoardType"; [imageBrowser reloadData]; } -- (void) setFile: (MP42File *)file +- (void)setFile:(MP42File *)file { metadata = [file.metadata retain]; tags = metadata.tagsDict; } -- (void) setMetadata: (MP42Metadata *)data +- (void)setMetadata:(MP42Metadata *)data { metadata = [data retain]; tags = data.tagsDict; @@ -820,13 +820,12 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn { [[NSNotificationCenter defaultCenter] removeObserver: self]; - [imageBrowser setDataSource:nil]; [imageBrowser setDelegate:nil]; - [tagsTableView setDataSource:nil]; + [imageBrowser setDataSource:nil]; [tagsTableView setDelegate:nil]; + [tagsTableView setDataSource:nil]; [_tagsArray release]; - [tagsMenu release]; [tabCol release]; [ratingCell release]; [genreCell release]; diff --git a/Classes/SBApplication.h b/Classes/SBApplication.h index 6b82f49..1b72628 100644 --- a/Classes/SBApplication.h +++ b/Classes/SBApplication.h @@ -1,8 +1,8 @@ -/* HBApplication.h $ - - This file is part of the HandBrake source code. - Homepage: . - It may be used under the terms of the GNU General Public License. */ +// +// SBLogger.m +// Subler +// +// #import diff --git a/Classes/SBApplication.m b/Classes/SBApplication.m index 91c21f7..18041e4 100644 --- a/Classes/SBApplication.m +++ b/Classes/SBApplication.m @@ -1,8 +1,7 @@ -/* HBApplication.m $ - - This file is part of the HandBrake source code. - Homepage: . - It may be used under the terms of the GNU General Public License. */ +// +// SBLogger.m +// Subler +// #import "SBApplication.h" #import "SBExceptionAlertController.h" @@ -17,14 +16,15 @@ static void CrashMyApplication() - (NSAttributedString *)_formattedExceptionBacktrace:(NSArray *)backtrace { NSMutableAttributedString *result = [[NSMutableAttributedString alloc] init]; - for (__strong NSString *s in backtrace) + for (NSString *s in backtrace) { s = [s stringByAppendingString:@"\n"]; NSAttributedString *attrS = [[NSAttributedString alloc] initWithString:s]; [result appendAttributedString:attrS]; + [attrS release]; } [result addAttribute:NSFontAttributeName value:[NSFont fontWithName:@"Monaco" size:10] range:NSMakeRange(0, result.length)]; - return result; + return [result autorelease]; } - (void)reportException:(NSException *)exception @@ -37,11 +37,7 @@ static void CrashMyApplication() { // Create a string based on the exception NSString *exceptionMessage = [NSString stringWithFormat:@"%@\nReason: %@\nUser Info: %@", exception.name, exception.reason, exception.userInfo]; - // Always log to console for history - - //[HBUtilities writeToActivityLog:"Exception raised:\n%s", exceptionMessage.UTF8String]; - //[HBUtilities writeToActivityLog:"Backtrace:\n%s", exception.callStackSymbols.description.UTF8String]; - + SBExceptionAlertController *alertController = [[SBExceptionAlertController alloc] init]; alertController.exceptionMessage = exceptionMessage; alertController.exceptionBacktrace = [self _formattedExceptionBacktrace:exception.callStackSymbols]; diff --git a/Classes/SBDocument.m b/Classes/SBDocument.m index 1c5cb8d..b9c0684 100755 --- a/Classes/SBDocument.m +++ b/Classes/SBDocument.m @@ -133,7 +133,9 @@ - (BOOL)writeSafelyToURL:(NSURL *)url ofType:(NSString *)typeName forSaveOperation:(NSSaveOperationType)saveOperation error:(NSError * _Nullable *)outError { - dispatch_async(dispatch_get_main_queue(), ^{ + [self unblockUserInteraction]; + + dispatch_sync(dispatch_get_main_queue(), ^{ [optBar setIndeterminate:YES]; [optBar startAnimation:self]; [saveOperationName setStringValue:@"Saving…"]; @@ -141,8 +143,6 @@ modalDelegate:nil didEndSelector:NULL contextInfo:nil]; }); - [self unblockUserInteraction]; - IOPMAssertionID assertionID; // Enable sleep assertion CFStringRef reasonForActivity= CFSTR("Subler Save Operation"); @@ -192,18 +192,17 @@ IOPMAssertionRelease(assertionID); } - NSError *error = *outError; MP42File *reloadedFile = nil; if (result == YES) { - reloadedFile = [[[MP42File alloc] initWithURL:url delegate:self] autorelease]; + reloadedFile = [[MP42File alloc] initWithURL:url delegate:self]; } - dispatch_async(dispatch_get_main_queue(), ^{ - [NSApp endSheet:savingWindow]; - [savingWindow orderOut:self]; + dispatch_sync(dispatch_get_main_queue(), ^{ [optBar stopAnimation:self]; + [savingWindow orderOut:self]; + [NSApp endSheet:savingWindow]; if (result == YES && error) { [self presentError:error @@ -215,6 +214,7 @@ if (reloadedFile) { self.mp4 = reloadedFile; + [reloadedFile release]; } }); @@ -469,15 +469,13 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn - (void)reloadPropertyView { - if ([propertyView view] != nil) { + if (propertyView.view != nil) { + // remove the undo items from the dealloced view + [[self undoManager] removeAllActionsWithTarget:propertyView]; + // remove the current view - [[propertyView view] removeFromSuperview]; - } + [propertyView.view removeFromSuperview]; - // remove the undo items from the dealloced view - [[self undoManager] removeAllActionsWithTarget:propertyView]; - - if (propertyView != nil) { // remove the current view controller [propertyView release]; } @@ -508,7 +506,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn propertyView = controller; // embed the current view to our host view - [targetView addSubview: [propertyView view]]; + [targetView addSubview:propertyView.view]; [documentWindow recalculateKeyViewLoop]; // make sure we automatically resize the controller's view to the current window size @@ -519,8 +517,9 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn - (BOOL)tableView:(NSTableView *)tv writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard { // Copy the row numbers to the pasteboard. - if ([[self.mp4 trackAtIndex:[rowIndexes firstIndex]] muxed]) + if ([[self.mp4 trackAtIndex:[rowIndexes firstIndex]] muxed]) { return NO; + } NSData *data = [NSKeyedArchiver archivedDataWithRootObject:rowIndexes]; [pboard declareTypes:@[SublerTableViewDataType] owner:self]; @@ -652,8 +651,9 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn MP42VideoTrack *videoTrack = (MP42VideoTrack *)track; int hdVideo = isHdVideo((uint64_t)videoTrack.trackWidth, (uint64_t)videoTrack.trackHeight); - if (hdVideo) - [self.mp4.metadata setTag:@(hdVideo) forKey:@"HD Video"]; + if (hdVideo) { + self.mp4.metadata[@"HD Video"] = @(hdVideo); + } } [self updateChangeCount:NSChangeDone]; } @@ -955,6 +955,9 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn - (void)dealloc { + [fileTracksTable setDelegate:nil]; + [fileTracksTable setDataSource:nil]; + [propertyView release]; propertyView = nil; diff --git a/Classes/SBExceptionAlertController.h b/Classes/SBExceptionAlertController.h index 1b215ea..5ad8a8f 100644 --- a/Classes/SBExceptionAlertController.h +++ b/Classes/SBExceptionAlertController.h @@ -1,8 +1,7 @@ -/* HBExceptionAlertController.h $ - - This file is part of the HandBrake source code. - Homepage: . - It may be used under the terms of the GNU General Public License. */ +// +// SBLogger.m +// Subler +// #import @@ -11,11 +10,14 @@ typedef NS_ENUM(NSUInteger, SBExceptionAlertControllerResult) { SBExceptionAlertControllerResultContinue, }; -@interface SBExceptionAlertController : NSWindowController +@interface SBExceptionAlertController : NSWindowController { + NSString *_exceptionMessage; + NSAttributedString *_exceptionBacktrace; +} // Properties are used by bindings -@property (copy) NSString *exceptionMessage; -@property (copy) NSAttributedString *exceptionBacktrace; +@property (nonatomic, copy) NSString *exceptionMessage; +@property (nonatomic, copy) NSAttributedString *exceptionBacktrace; - (IBAction)btnCrashClicked:(id)sender; - (IBAction)btnContinueClicked:(id)sender; diff --git a/Classes/SBExceptionAlertController.m b/Classes/SBExceptionAlertController.m index 4e550a8..409ec6c 100644 --- a/Classes/SBExceptionAlertController.m +++ b/Classes/SBExceptionAlertController.m @@ -1,8 +1,7 @@ -/* HBExceptionAlertController.m $ - - This file is part of the HandBrake source code. - Homepage: . - It may be used under the terms of the GNU General Public License. */ +// +// SBLogger.m +// Subler +// #import "SBExceptionAlertController.h" @@ -13,6 +12,9 @@ return [self initWithWindowNibName:@"ExceptionAlert"]; } +@synthesize exceptionBacktrace = _exceptionBacktrace; +@synthesize exceptionMessage = _exceptionMessage; + - (NSInteger)runModal { return [NSApp runModalForWindow:self.window]; diff --git a/Classes/SBImageBrowserView.m b/Classes/SBImageBrowserView.m index 7a07bea..0199de9 100755 --- a/Classes/SBImageBrowserView.m +++ b/Classes/SBImageBrowserView.m @@ -16,7 +16,7 @@ { self = [super initWithFrame:frame]; if (self) { - _pasteboardTypes = @[]; + _pasteboardTypes = [@[] retain]; } return self; } @@ -25,7 +25,7 @@ { self = [super initWithCoder:coder]; if (self) { - _pasteboardTypes = @[]; + _pasteboardTypes = [@[] retain]; } return self; } @@ -62,6 +62,8 @@ - (void)dealloc { [_pasteboardTypes release]; + _pasteboardTypes = nil; + [super dealloc]; } diff --git a/Classes/SBLogWindowController.h b/Classes/SBLogWindowController.h index 7df9c72..c5d71f4 100644 --- a/Classes/SBLogWindowController.h +++ b/Classes/SBLogWindowController.h @@ -14,6 +14,7 @@ NS_ASSUME_NONNULL_BEGIN @class SBLogger; @interface SBLogWindowController : NSWindowController { + @private NSTextView *_logView; SBLogger *_logger; } diff --git a/Classes/SBMetadataSearchController.m b/Classes/SBMetadataSearchController.m index 4af28f5..3c1971a 100755 --- a/Classes/SBMetadataSearchController.m +++ b/Classes/SBMetadataSearchController.m @@ -420,10 +420,10 @@ } [delegate metadataImportDone:self.selectedResult]; - [metadataTable setDataSource:nil]; [metadataTable setDelegate:nil]; - [resultsTable setDataSource:nil]; + [metadataTable setDataSource:nil]; [resultsTable setDelegate:nil]; + [resultsTable setDataSource:nil]; [NSApp endSheet:[self window] returnCode:1]; } @@ -433,10 +433,10 @@ [self.currentSearcher cancel]; self.currentSearcher = nil; - [metadataTable setDataSource:nil]; [metadataTable setDelegate:nil]; - [resultsTable setDataSource:nil]; + [metadataTable setDataSource:nil]; [resultsTable setDelegate:nil]; + [resultsTable setDataSource:nil]; [NSApp endSheet:[self window] returnCode:0]; } @@ -593,10 +593,12 @@ static NSInteger sortFunction (id ldict, id rdict, void *context) { NSInteger right = [(NSArray*) context indexOfObject:rdict]; NSInteger left = [(NSArray*) context indexOfObject:ldict]; - if (right < left) + if (right < left) { rc = NSOrderedDescending; - else + } + else { rc = NSOrderedAscending; + } return rc; } diff --git a/Classes/SBQueueAction.m b/Classes/SBQueueAction.m index 25b2813..9018e80 100644 --- a/Classes/SBQueueAction.m +++ b/Classes/SBQueueAction.m @@ -167,8 +167,9 @@ MP42Image *artwork = [self loadArtwork:artworkURL]; - if (artwork) + if (artwork) { [metadata.artworks addObject:artwork]; + } } return metadata; @@ -183,11 +184,12 @@ MP42VideoTrack *videoTrack = (MP42VideoTrack *)track; int hdVideo = isHdVideo((uint64_t)videoTrack.trackWidth, (uint64_t)videoTrack.trackHeight); - if (hdVideo) - [metadata setTag:@(hdVideo) forKey:@"HD Video"]; + if (hdVideo) { + metadata[@"HD Video"] = @(hdVideo); + } } - [[item.mp4File metadata] mergeMetadata:metadata]; + [item.mp4File.metadata mergeMetadata:metadata]; } - (NSString *)description { diff --git a/Classes/SBTableView.h b/Classes/SBTableView.h index 74c6c67..9a6775a 100755 --- a/Classes/SBTableView.h +++ b/Classes/SBTableView.h @@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN NSArray *_pasteboardTypes; NSInteger _defaultEditingColumn; } -@property(nonatomic, readwrite, retain) NSArray *pasteboardTypes; +@property(nonatomic, readwrite, copy) NSArray *pasteboardTypes; @property(nonatomic, readwrite) NSInteger defaultEditingColumn; @end diff --git a/Classes/SBTableView.m b/Classes/SBTableView.m index 4a17ab7..9addb8a 100755 --- a/Classes/SBTableView.m +++ b/Classes/SBTableView.m @@ -18,7 +18,7 @@ { self = [super initWithFrame:frame]; if (self) { - _pasteboardTypes = @[]; + _pasteboardTypes = [@[] retain]; } return self; } @@ -27,7 +27,7 @@ { self = [super initWithCoder:coder]; if (self) { - _pasteboardTypes = @[]; + _pasteboardTypes = [@[] retain]; } return self; } @@ -170,9 +170,11 @@ [super drawRow:inRow clipRect:newClipRect]; } -- (void) dealloc +- (void)dealloc { [_pasteboardTypes release]; + _pasteboardTypes = nil; + [super dealloc]; } diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index 1bead7c..f08b274 100755 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -11,7 +11,7 @@ - + diff --git a/MP42Foundation b/MP42Foundation index f6b2387..b70e199 160000 --- a/MP42Foundation +++ b/MP42Foundation @@ -1 +1 @@ -Subproject commit f6b23874f6a93f0ad3f043537892d3f799adfe94 +Subproject commit b70e19961c4791fd3c416eceb9066414b9096869 diff --git a/Subler.xcodeproj/project.pbxproj b/Subler.xcodeproj/project.pbxproj index e3a2f54..9805ff0 100644 --- a/Subler.xcodeproj/project.pbxproj +++ b/Subler.xcodeproj/project.pbxproj @@ -17,6 +17,10 @@ A91F622D0FB0A56F00B96B33 /* libicucore.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A91F622C0FB0A56F00B96B33 /* libicucore.dylib */; }; A925AA8518378D8A00BE84D4 /* MP42Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A925AA8218378D7900BE84D4 /* MP42Foundation.framework */; }; A925AA8818378DD000BE84D4 /* MP42Foundation.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = A925AA8218378D7900BE84D4 /* MP42Foundation.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + A95688A21B91B0F3004456A6 /* NSArray+Subscripting.m in Sources */ = {isa = PBXBuildFile; fileRef = A95688A11B91B0F3004456A6 /* NSArray+Subscripting.m */; settings = {ASSET_TAGS = (); }; }; + A95688A91B91B11B004456A6 /* NSDictionary+Subscript.m in Sources */ = {isa = PBXBuildFile; fileRef = A95688A41B91B11B004456A6 /* NSDictionary+Subscript.m */; settings = {ASSET_TAGS = (); }; }; + A95688AA1B91B11B004456A6 /* NSMutableArray+Subscript.m in Sources */ = {isa = PBXBuildFile; fileRef = A95688A61B91B11B004456A6 /* NSMutableArray+Subscript.m */; settings = {ASSET_TAGS = (); }; }; + A95688AB1B91B11B004456A6 /* NSMutableDictionary+Subscript.m in Sources */ = {isa = PBXBuildFile; fileRef = A95688A81B91B11B004456A6 /* NSMutableDictionary+Subscript.m */; settings = {ASSET_TAGS = (); }; }; A95B8DA91B09F37800F2F152 /* Subler_Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = A95B8DA81B09F37800F2F152 /* Subler_Tests.m */; }; A95C881D0F827BFB00F51A22 /* ToolbarRemoveTemplate.png in Resources */ = {isa = PBXBuildFile; fileRef = A95C881C0F827BFB00F51A22 /* ToolbarRemoveTemplate.png */; }; A960E96317D4B00900FC6ED9 /* SBImageBrowserView.m in Sources */ = {isa = PBXBuildFile; fileRef = A960E96217D4B00900FC6ED9 /* SBImageBrowserView.m */; }; @@ -67,6 +71,9 @@ A9D47B5A17B239E200900BCA /* EncodeComplete.png in Resources */ = {isa = PBXBuildFile; fileRef = A9D47B5617B239E200900BCA /* EncodeComplete.png */; }; A9D47B5B17B239E200900BCA /* EncodeComplete@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A9D47B5717B239E200900BCA /* EncodeComplete@2x.png */; }; A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */; }; + A9DA3B9C1B918D5C00F1E40C /* SBApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = A9DA3B991B918D5C00F1E40C /* SBApplication.m */; settings = {ASSET_TAGS = (); }; }; + A9DA3B9D1B918D5C00F1E40C /* SBExceptionAlertController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9DA3B9B1B918D5C00F1E40C /* SBExceptionAlertController.m */; settings = {ASSET_TAGS = (); }; }; + A9DA3BA31B918D6F00F1E40C /* ExceptionAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9DA3BA11B918D6F00F1E40C /* ExceptionAlert.xib */; settings = {ASSET_TAGS = (); }; }; A9E2C9C91A1770EC00A417C9 /* EncodeWorking@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A9E2C9C81A1770EC00A417C9 /* EncodeWorking@2x.png */; }; A9EEA5F218D65490008B54B4 /* SBOptionsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9EEA5F018D65490008B54B4 /* SBOptionsViewController.m */; }; A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */; }; @@ -165,6 +172,14 @@ A917286419FD289F00348DF8 /* SBLogger.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SBLogger.h; path = Classes/SBLogger.h; sourceTree = ""; }; A91F622C0FB0A56F00B96B33 /* libicucore.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicucore.dylib; path = /usr/lib/libicucore.dylib; sourceTree = ""; }; A925AA7B18378D7800BE84D4 /* MP42Foundation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = MP42Foundation.xcodeproj; path = MP42Foundation/MP42Foundation.xcodeproj; sourceTree = ""; }; + A95688A01B91B0F3004456A6 /* NSArray+Subscripting.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSArray+Subscripting.h"; path = "Classes/Compatibility/NSArray+Subscripting.h"; sourceTree = ""; }; + A95688A11B91B0F3004456A6 /* NSArray+Subscripting.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSArray+Subscripting.m"; path = "Classes/Compatibility/NSArray+Subscripting.m"; sourceTree = ""; }; + A95688A31B91B11B004456A6 /* NSDictionary+Subscript.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSDictionary+Subscript.h"; path = "Classes/Compatibility/NSDictionary+Subscript.h"; sourceTree = ""; }; + A95688A41B91B11B004456A6 /* NSDictionary+Subscript.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSDictionary+Subscript.m"; path = "Classes/Compatibility/NSDictionary+Subscript.m"; sourceTree = ""; }; + A95688A51B91B11B004456A6 /* NSMutableArray+Subscript.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSMutableArray+Subscript.h"; path = "Classes/Compatibility/NSMutableArray+Subscript.h"; sourceTree = ""; }; + A95688A61B91B11B004456A6 /* NSMutableArray+Subscript.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSMutableArray+Subscript.m"; path = "Classes/Compatibility/NSMutableArray+Subscript.m"; sourceTree = ""; }; + A95688A71B91B11B004456A6 /* NSMutableDictionary+Subscript.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSMutableDictionary+Subscript.h"; path = "Classes/Compatibility/NSMutableDictionary+Subscript.h"; sourceTree = ""; }; + A95688A81B91B11B004456A6 /* NSMutableDictionary+Subscript.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSMutableDictionary+Subscript.m"; path = "Classes/Compatibility/NSMutableDictionary+Subscript.m"; sourceTree = ""; }; A95B8DA41B09F37700F2F152 /* Subler Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Subler Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; A95B8DA71B09F37700F2F152 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; A95B8DA81B09F37800F2F152 /* Subler_Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Subler_Tests.m; sourceTree = ""; }; @@ -244,6 +259,11 @@ A9D47B5717B239E200900BCA /* EncodeComplete@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "EncodeComplete@2x.png"; path = "images/EncodeComplete@2x.png"; sourceTree = ""; }; A9D73C5018BF3F1100C6FFA6 /* SBQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueue.h; path = Classes/SBQueue.h; sourceTree = ""; }; A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueue.m; path = Classes/SBQueue.m; sourceTree = ""; }; + A9DA3B991B918D5C00F1E40C /* SBApplication.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBApplication.m; path = Classes/SBApplication.m; sourceTree = ""; }; + A9DA3B9A1B918D5C00F1E40C /* SBExceptionAlertController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBExceptionAlertController.h; path = Classes/SBExceptionAlertController.h; sourceTree = ""; }; + A9DA3B9B1B918D5C00F1E40C /* SBExceptionAlertController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBExceptionAlertController.m; path = Classes/SBExceptionAlertController.m; sourceTree = ""; }; + A9DA3BA01B918D6200F1E40C /* SBApplication.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SBApplication.h; path = Classes/SBApplication.h; sourceTree = ""; }; + A9DA3BA21B918D6F00F1E40C /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/ExceptionAlert.xib; sourceTree = ""; }; A9E2C9C81A1770EC00A417C9 /* EncodeWorking@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "EncodeWorking@2x.png"; path = "images/EncodeWorking@2x.png"; sourceTree = ""; }; A9ED7B21180067A2008FD3A8 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; A9EEA5EF18D65490008B54B4 /* SBOptionsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBOptionsViewController.h; path = Classes/SBOptionsViewController.h; sourceTree = ""; }; @@ -374,10 +394,8 @@ A9AB484817F0AEA2000AA72E /* SBAppDelegate.m */, CD71FF1A12F1C46900F0A98D /* MetadataImporters */, A9FD5D150F3C692400817716 /* PropertyView */, - A9C5FA6B19FA22590051F3FF /* SBLogWindowController.h */, - A9C5FA6C19FA22590051F3FF /* SBLogWindowController.m */, - A917286419FD289F00348DF8 /* SBLogger.h */, - A917286019FD288B00348DF8 /* SBLogger.m */, + A95688AC1B91B35A004456A6 /* Activity Log */, + A956889F1B91AFF7004456A6 /* Compatibility */, ); name = Classes; sourceTree = ""; @@ -446,6 +464,36 @@ name = Products; sourceTree = ""; }; + A956889F1B91AFF7004456A6 /* Compatibility */ = { + isa = PBXGroup; + children = ( + A95688A01B91B0F3004456A6 /* NSArray+Subscripting.h */, + A95688A11B91B0F3004456A6 /* NSArray+Subscripting.m */, + A95688A31B91B11B004456A6 /* NSDictionary+Subscript.h */, + A95688A41B91B11B004456A6 /* NSDictionary+Subscript.m */, + A95688A51B91B11B004456A6 /* NSMutableArray+Subscript.h */, + A95688A61B91B11B004456A6 /* NSMutableArray+Subscript.m */, + A95688A71B91B11B004456A6 /* NSMutableDictionary+Subscript.h */, + A95688A81B91B11B004456A6 /* NSMutableDictionary+Subscript.m */, + ); + name = Compatibility; + sourceTree = ""; + }; + A95688AC1B91B35A004456A6 /* Activity Log */ = { + isa = PBXGroup; + children = ( + A9C5FA6B19FA22590051F3FF /* SBLogWindowController.h */, + A9C5FA6C19FA22590051F3FF /* SBLogWindowController.m */, + A917286419FD289F00348DF8 /* SBLogger.h */, + A917286019FD288B00348DF8 /* SBLogger.m */, + A9DA3BA01B918D6200F1E40C /* SBApplication.h */, + A9DA3B991B918D5C00F1E40C /* SBApplication.m */, + A9DA3B9A1B918D5C00F1E40C /* SBExceptionAlertController.h */, + A9DA3B9B1B918D5C00F1E40C /* SBExceptionAlertController.m */, + ); + name = "Activity Log"; + sourceTree = ""; + }; A95B8DA51B09F37700F2F152 /* Subler Tests */ = { isa = PBXGroup; children = ( @@ -481,6 +529,7 @@ A9BC410618D9ABC000F8C92C /* QueueItem.xib */, A90B023910F3290A000416F3 /* Prefs.xib */, A9C5FA7219FA2FEC0051F3FF /* SBLogWindow.xib */, + A9DA3BA11B918D6F00F1E40C /* ExceptionAlert.xib */, ); name = NIBs; sourceTree = ""; @@ -712,6 +761,7 @@ A9D47B5917B239E200900BCA /* EncodeCanceled@2x.png in Resources */, A984DB740F52DD4B001A20B2 /* dsa_pub.pem in Resources */, A9C5FA7419FA2FEC0051F3FF /* SBLogWindow.xib in Resources */, + A9DA3BA31B918D6F00F1E40C /* ExceptionAlert.xib in Resources */, A9C055370F6D395B00AF15B5 /* FileImport.xib in Resources */, A95C881D0F827BFB00F51A22 /* ToolbarRemoveTemplate.png in Resources */, A90B023B10F3290A000416F3 /* Prefs.xib in Resources */, @@ -772,8 +822,10 @@ buildActionMask = 2147483647; files = ( 8D15AC320486D014006FF6A4 /* main.m in Sources */, + A95688A91B91B11B004456A6 /* NSDictionary+Subscript.m in Sources */, A9AB485617F0AEAC000AA72E /* SBMovieViewController.m in Sources */, A960E96317D4B00900FC6ED9 /* SBImageBrowserView.m in Sources */, + A9DA3B9D1B918D5C00F1E40C /* SBExceptionAlertController.m in Sources */, A9BC410318D9AB8700F8C92C /* SBItemViewController.m in Sources */, A9AB484917F0AEA2000AA72E /* SBAppDelegate.m in Sources */, A9B46A8C12B79B240040517A /* SBFileImport.m in Sources */, @@ -790,9 +842,12 @@ A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */, A9AB485717F0AEAC000AA72E /* SBSoundViewController.m in Sources */, A9C828F5195950C3004C4718 /* SBQueuePreferences.m in Sources */, + A9DA3B9C1B918D5C00F1E40C /* SBApplication.m in Sources */, CD56963212FAAD680029FADB /* SBArtworkSelector.m in Sources */, A961476313F567E10068F161 /* SBQueueController.m in Sources */, A961476413F567E10068F161 /* SBPresetManager.m in Sources */, + A95688AA1B91B11B004456A6 /* NSMutableArray+Subscript.m in Sources */, + A95688AB1B91B11B004456A6 /* NSMutableDictionary+Subscript.m in Sources */, A982D0C0140AB66400B92357 /* SBQueueItem.m in Sources */, A9AF6A7518D0496400FAAB08 /* SBQueueAction.m in Sources */, CDC06FCE1747494D003C1D0A /* iTunesStore.m in Sources */, @@ -802,6 +857,7 @@ CD03087917576AE50093A0BE /* MetadataImporter.m in Sources */, CD3F2A881761A143000D4C73 /* XMLReader.m in Sources */, A9AB485517F0AEAC000AA72E /* SBEmptyViewController.m in Sources */, + A95688A21B91B0F3004456A6 /* NSArray+Subscripting.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -941,6 +997,14 @@ name = SBLogWindow.xib; sourceTree = ""; }; + A9DA3BA11B918D6F00F1E40C /* ExceptionAlert.xib */ = { + isa = PBXVariantGroup; + children = ( + A9DA3BA21B918D6F00F1E40C /* English */, + ); + name = ExceptionAlert.xib; + sourceTree = ""; + }; A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */ = { isa = PBXVariantGroup; children = (