Fixed a crash selected save after clicking the document close button, and small fixes

This commit is contained in:
galad87 committed 2015-08-29 11:42:54 +02:00
1 parent 29e8fe453f
commit 5d7bafae3d
18 files changed
+158 -83

No files matched your search

@@ -398,6 +398,7 @@
</tabView>
</subviews>
<animations/>
<point key="canvasLocation" x="532" y="445"/>
</customView>
</objects>
<resources>
@@ -39,18 +39,18 @@
<tabViewItems>
<tabViewItem label="Metadata" identifier="1" id="11">
<view key="view" id="12">
<rect key="frame" x="10" y="29" width="482" height="237"/>
<rect key="frame" x="10" y="25" width="482" height="241"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="19">
<rect key="frame" x="17" y="36" width="448" height="195"/>
<rect key="frame" x="17" y="36" width="448" height="199"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<clipView key="contentView" id="Vdx-OM-peX">
<rect key="frame" x="1" y="17" width="446" height="177"/>
<rect key="frame" x="1" y="0.0" width="446" height="198"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" columnSelection="YES" autosaveColumns="NO" rowHeight="14" headerView="23" id="22" customClass="SBTableView">
<rect key="frame" x="0.0" y="0.0" width="446" height="177"/>
<rect key="frame" x="0.0" y="0.0" width="446" height="181"/>
<autoresizingMask key="autoresizingMask"/>
<animations/>
<size key="intercellSpacing" width="3" height="2"/>
@@ -40,7 +40,6 @@ NS_ASSUME_NONNULL_BEGIN
NSDictionary<NSString *, id> *tags;
NSArray<NSString *> *_tagsArray;
NSArray<NSString *> *tagsMenu;
NSDictionary *detailBoldAttr;
NSMutableDictionary *dct;
+6 -7
View File
@@ -40,8 +40,8 @@ NSString *MetadataPBoardType = @"SublerMetadataPBoardType";
selector:@selector(updateSetsMenu:)
name:@"SBPresetManagerUpdatedNotification" object:nil];
tagsMenu = [[metadata writableMetadata] retain];
for (id tag in tagsMenu) {
NSArray<NSString *> *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];