Remove 10.9 support.
This commit is contained in:
18 files changed
+54
-118
No files matched your search
+2
-15
@@ -1,15 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13528" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13528"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="SBQueueController">
|
||||
<connections>
|
||||
<outlet property="_detachedWindow" destination="zHc-NF-Zeh" id="Cr1-ha-Wmx"/>
|
||||
<outlet property="detachedWindow" destination="zHc-NF-Zeh" id="GMJ-fz-AdQ"/>
|
||||
<outlet property="progressBar" destination="91" id="Pyo-9s-F6Q"/>
|
||||
<outlet property="startItem" destination="xeY-tT-tF2" id="MmM-v9-enw"/>
|
||||
<outlet property="statusLabel" destination="12" id="VYp-DC-guz"/>
|
||||
@@ -231,17 +229,6 @@
|
||||
<outlet property="delegate" destination="-2" id="84"/>
|
||||
</connections>
|
||||
</menu>
|
||||
<window title="Queue Options" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" showsToolbarButton="NO" visibleAtLaunch="NO" frameAutosaveName="SBQueueOptionsWindow" animationBehavior="default" id="zHc-NF-Zeh" userLabel="Window - Detached Options" customClass="NSPanel">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" utility="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="187" y="1037" width="334" height="380"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||
<view key="contentView" id="hhb-jZ-DWa">
|
||||
<rect key="frame" x="0.0" y="0.0" width="334" height="380"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
</view>
|
||||
<point key="canvasLocation" x="102" y="-145"/>
|
||||
</window>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="EncodeComplete" width="16" height="16"/>
|
||||
|
||||
@@ -47,7 +47,7 @@ private class ArtworkImageObject : NSObject {
|
||||
}
|
||||
|
||||
if startDownload {
|
||||
DispatchQueue.global(priority: .default).async {
|
||||
DispatchQueue.global(qos: .userInitiated).async {
|
||||
let localData = URLSession.data(from: self.source.thumbURL)
|
||||
var localCancelled = false
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ extension SBDocument: ChapterSearchControllerDelegate, MetadataSearchControllerD
|
||||
let name = mp4.formattedFileName() {
|
||||
return name
|
||||
} else {
|
||||
return mp4.tracks.flatMap { $0.url }.first?.deletingPathExtension().lastPathComponent
|
||||
return mp4.tracks.compactMap { $0.url }.first?.deletingPathExtension().lastPathComponent
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ class FileImportController: NSWindowController, NSTableViewDataSource, NSTableVi
|
||||
|
||||
var rows: [ItemType] = Array()
|
||||
|
||||
let fileImporters: [MP42FileImporter] = try fileURLs.flatMap {
|
||||
let fileImporters: [MP42FileImporter] = try fileURLs.compactMap {
|
||||
return try MP42FileImporter(url: $0)
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ class FileImportController: NSWindowController, NSTableViewDataSource, NSTableVi
|
||||
// MARK: Public properties
|
||||
|
||||
private var settings: [Settings] {
|
||||
return items.flatMap {
|
||||
return items.compactMap {
|
||||
switch $0 {
|
||||
case .file(_):
|
||||
return nil
|
||||
@@ -266,7 +266,7 @@ class FileImportController: NSWindowController, NSTableViewDataSource, NSTableVi
|
||||
}
|
||||
|
||||
@IBAction func checkOnlyTracksWithSameLanguage(_ sender: Any) {
|
||||
let languages = tableView.targetedRowIndexes.flatMap {
|
||||
let languages = tableView.targetedRowIndexes.compactMap {
|
||||
let item = items[$0]
|
||||
switch item {
|
||||
case .file(_):
|
||||
|
||||
@@ -58,7 +58,7 @@ public struct ChapterDB : ChapterService {
|
||||
var currentTime: UInt64 = 0
|
||||
var chapters: [Chapter] = Array()
|
||||
|
||||
for (time, name) in zip(times.flatMap { $0.stringValue }, names.flatMap { $0.stringValue }) {
|
||||
for (time, name) in zip(times.compactMap { $0.stringValue }, names.compactMap { $0.stringValue }) {
|
||||
let timestamp = TimeFromString(time, 1000)
|
||||
|
||||
if timestamp < currentTime {
|
||||
@@ -84,7 +84,7 @@ public struct ChapterDB : ChapterService {
|
||||
guard let document = try? XMLDocument(data: data, options: []),
|
||||
let children = try? document.nodes(forXPath: "//*:chapterInfo") else { return [] }
|
||||
|
||||
return children.flatMap { parse(node: $0) }
|
||||
return children.compactMap { parse(node: $0) }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -239,7 +239,7 @@ public class MetadataResult : NSObject {
|
||||
public func mappedMetadata(to map: MetadataResultMap, keepEmptyKeys: Bool) -> MP42Metadata {
|
||||
let metadata = MP42Metadata()
|
||||
|
||||
metadata.addItems(map.items.flatMap {
|
||||
metadata.addItems(map.items.compactMap {
|
||||
let value = $0.value.reduce("", {
|
||||
if let key = Key(rawValue: $1) {
|
||||
if let value = dictionary[key] {
|
||||
|
||||
@@ -111,7 +111,7 @@ struct SquaredTVArt {
|
||||
private func parse(xml: XMLDocument) -> [SquaredTVArtwork] {
|
||||
guard let nodes = try? xml.nodes(forXPath: "//div[starts-with(@class,'Post ')]") else { return [] }
|
||||
|
||||
return nodes.flatMap { (node) -> SquaredTVArtwork? in
|
||||
return nodes.compactMap { (node) -> SquaredTVArtwork? in
|
||||
if let subXml = try? XMLDocument(xmlString: node.xmlString, options: []),
|
||||
let name = completeName(xml: subXml),
|
||||
let url = thumbURL(xml: subXml),
|
||||
|
||||
@@ -57,14 +57,14 @@ public struct TheMovieDB: MetadataService {
|
||||
private func cleanList(items: [TMDBTuple]?) -> String? {
|
||||
guard let items = items else { return nil }
|
||||
if items.count == 0 { return nil }
|
||||
return items.flatMap { (t: TMDBTuple) -> String? in return t.name }
|
||||
return items.compactMap { (t: TMDBTuple) -> String? in return t.name }
|
||||
.reduce("", { (s1: String, s2: String) -> String in return s1 + (s1.isEmpty ? "" : ", ") + s2 })
|
||||
}
|
||||
|
||||
private func cleanList(cast: [TMDBCast]?) -> String? {
|
||||
guard let cast = cast else { return nil }
|
||||
if cast.count == 0 { return nil }
|
||||
return cast.flatMap { (t: TMDBCast) -> String? in return t.name }
|
||||
return cast.compactMap { (t: TMDBCast) -> String? in return t.name }
|
||||
.reduce("", { (s1: String, s2: String) -> String in return s1 + (s1.isEmpty ? "" : ", ") + s2 })
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ public struct TheMovieDB: MetadataService {
|
||||
guard let crew = crew else { return nil }
|
||||
let found = crew.filter { (c: TMDBCrew) -> Bool in return c.job == job }
|
||||
if found.count == 0 { return nil }
|
||||
return found.flatMap { $0.name }
|
||||
return found.compactMap { $0.name }
|
||||
.reduce("", { $0 + ($0.isEmpty ? "" : ", " ) + $1 })
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ public struct TheMovieDB: MetadataService {
|
||||
guard let crew = crew else { return nil }
|
||||
let found = crew.filter { (c: TMDBCrew) -> Bool in return c.department == department }
|
||||
if found.count == 0 { return nil }
|
||||
return found.flatMap { $0.name }
|
||||
return found.compactMap { $0.name }
|
||||
.reduce("", { $0 + ($0.isEmpty ? "" : ", ") + $1 })
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ public struct TheMovieDB: MetadataService {
|
||||
let backdropThumbnailSize = config.backdrop_sizes.first {
|
||||
|
||||
if let images = result.images?.posters {
|
||||
artworks.append(contentsOf: images.flatMap { loadArtwork(filePath: $0.file_path, baseURL: imageBaseURL, thumbSize: posterThumbnailSize, kind: .poster) } )
|
||||
artworks.append(contentsOf: images.compactMap { loadArtwork(filePath: $0.file_path, baseURL: imageBaseURL, thumbSize: posterThumbnailSize, kind: .poster) } )
|
||||
}
|
||||
|
||||
if result.images?.posters?.count == 0, let posterPath = result.poster_path,
|
||||
@@ -288,7 +288,7 @@ public struct TheMovieDB: MetadataService {
|
||||
metadata[.composer] = cleanList(crew: result.crew, job: "Original Music Composer")
|
||||
|
||||
if let ratings = info.content_ratings?.results {
|
||||
let USRating = ratings.filter { $0.iso_3166_1 == "US" }.flatMap { $0.rating }
|
||||
let USRating = ratings.filter { $0.iso_3166_1 == "US" }.compactMap { $0.rating }
|
||||
if let rating = USRating.first {
|
||||
metadata[.rating] = MP42Ratings.defaultManager.ratingStringForiTunesCountry("USA",
|
||||
media: "TV",
|
||||
@@ -342,8 +342,8 @@ public struct TheMovieDB: MetadataService {
|
||||
let imageBaseURL = config.secure_base_url,
|
||||
let posterThumbnailSize = config.poster_sizes.first {
|
||||
|
||||
artworks.append(contentsOf: seasonImages.flatMap { loadArtwork(filePath: $0.file_path, baseURL: imageBaseURL, thumbSize: posterThumbnailSize, kind: .season) } )
|
||||
artworks.append(contentsOf: episodeImages.flatMap { loadArtwork(filePath: $0.file_path, baseURL: imageBaseURL, thumbSize: posterThumbnailSize, kind: .episode) } )
|
||||
artworks.append(contentsOf: seasonImages.compactMap { loadArtwork(filePath: $0.file_path, baseURL: imageBaseURL, thumbSize: posterThumbnailSize, kind: .season) } )
|
||||
artworks.append(contentsOf: episodeImages.compactMap { loadArtwork(filePath: $0.file_path, baseURL: imageBaseURL, thumbSize: posterThumbnailSize, kind: .episode) } )
|
||||
}
|
||||
|
||||
}
|
||||
@@ -352,7 +352,7 @@ public struct TheMovieDB: MetadataService {
|
||||
|
||||
var iTunesImage = [Artwork](), squareTVArt = [Artwork]()
|
||||
let group = DispatchGroup()
|
||||
DispatchQueue.global(priority: .default).async(group: group) {
|
||||
DispatchQueue.global().async(group: group) {
|
||||
// add iTunes artwork
|
||||
if let name = metadata[.seriesName] as? String,
|
||||
let iTunesMetadata = iTunesStore.quickiTunesSearch(tvSeriesName: name,
|
||||
@@ -361,7 +361,7 @@ public struct TheMovieDB: MetadataService {
|
||||
iTunesImage = iTunesMetadata.remoteArtworks
|
||||
}
|
||||
}
|
||||
DispatchQueue.global(priority: .default).async(group: group) {
|
||||
DispatchQueue.global().async(group: group) {
|
||||
// Add Squared TV Artwork
|
||||
squareTVArt = self.loadSquareTVArtwork(metadata)
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public struct TheTVDB : MetadataService, MetadataNameService {
|
||||
var results: Set<String> = Set()
|
||||
|
||||
let series = session.fetch(series: tvShow, language: language)
|
||||
results.formUnion(series.flatMap { $0.seriesName } )
|
||||
results.formUnion(series.compactMap { $0.seriesName } )
|
||||
|
||||
if language != defaultLanguage {
|
||||
let englishResults = search(tvShow: tvShow, language: defaultLanguage)
|
||||
@@ -341,16 +341,16 @@ public struct TheTVDB : MetadataService, MetadataNameService {
|
||||
if let season = metadata[.season] as? Int {
|
||||
var iTunesImage = [Artwork](), squareTVArt = [Artwork](), seasonImages = [Artwork](), posterImages = [Artwork]()
|
||||
let group = DispatchGroup()
|
||||
DispatchQueue.global(priority: .default).async(group: group) {
|
||||
DispatchQueue.global().async(group: group) {
|
||||
iTunesImage = self.loadiTunesArtwork(metadata)
|
||||
}
|
||||
DispatchQueue.global(priority: .default).async(group: group) {
|
||||
DispatchQueue.global().async(group: group) {
|
||||
squareTVArt = self.loadSquareTVArtwork(metadata)
|
||||
}
|
||||
DispatchQueue.global(priority: .default).async(group: group) {
|
||||
DispatchQueue.global().async(group: group) {
|
||||
seasonImages = self.loadTVArtwork(seriesID: seriesId, type: .season, season: String(season), language: language)
|
||||
}
|
||||
DispatchQueue.global(priority: .default).async(group: group) {
|
||||
DispatchQueue.global().async(group: group) {
|
||||
posterImages = self.loadTVArtwork(seriesID: seriesId, type: .poster, season: String(season), language: language)
|
||||
}
|
||||
group.wait()
|
||||
|
||||
@@ -295,7 +295,7 @@ public struct iTunesStore: MetadataService {
|
||||
return c1.collectionName.minimumEditDistance(other: seriesName) > c2.collectionName.minimumEditDistance(other: seriesName) ? false : true
|
||||
})
|
||||
|
||||
let ids = sortedResults.flatMap { extractID(result: $0, show: seriesName, season: seasonNum, store: store) }
|
||||
let ids = sortedResults.compactMap { extractID(result: $0, show: seriesName, season: seasonNum, store: store) }
|
||||
if ids.isEmpty && sortedResults.first!.collectionName.minimumEditDistance(other: seriesName) < 30 {
|
||||
return [sortedResults.first!.collectionId]
|
||||
} else {
|
||||
@@ -310,7 +310,7 @@ public struct iTunesStore: MetadataService {
|
||||
return a1.artistName.minimumEditDistance(other: seriesName) > a2.artistName.minimumEditDistance(other: seriesName) ? false : true
|
||||
})
|
||||
|
||||
let ids = sortedResults.flatMap { extractID(result: $0, show: seriesName, store: store) }
|
||||
let ids = sortedResults.compactMap { extractID(result: $0, show: seriesName, store: store) }
|
||||
if ids.isEmpty && sortedResults.first!.artistName.minimumEditDistance(other: seriesName) < 30 {
|
||||
return [sortedResults.first!.artistId]
|
||||
} else {
|
||||
@@ -492,7 +492,7 @@ public struct iTunesStore: MetadataService {
|
||||
for node in nodes {
|
||||
if let subXml = try? XMLDocument(xmlString: node.xmlString, options: []),
|
||||
let subNodes = try? subXml.nodes(forXPath: "//a") {
|
||||
return subNodes.flatMap { $0.stringValue }
|
||||
return subNodes.compactMap { $0.stringValue }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -312,7 +312,7 @@ class MetadataSearchController: NSWindowController, NSTableViewDataSource, NSTab
|
||||
switch state {
|
||||
case .closing(_, let result):
|
||||
|
||||
DispatchQueue.global(priority: .background).async {
|
||||
DispatchQueue.global(qos: .userInitiated).async {
|
||||
for artwork in artworks {
|
||||
if let data = URLSession.data(from: artwork.url) {
|
||||
result.artworks.append(MP42Image(data: data, type: MP42_ART_JPEG))
|
||||
|
||||
@@ -32,7 +32,7 @@ class RunnableTask<T> : Runnable {
|
||||
}
|
||||
|
||||
@discardableResult public func runAsync() -> Runnable {
|
||||
DispatchQueue.global(priority: .background).async {
|
||||
DispatchQueue.global().async {
|
||||
self.run()
|
||||
}
|
||||
return self
|
||||
|
||||
@@ -41,12 +41,9 @@ class PresetEditorViewController: SBMovieViewController {
|
||||
}
|
||||
|
||||
@IBAction func done(_ sender: Any) {
|
||||
if #available(OSX 10.10, *) {
|
||||
dismissViewController(self)
|
||||
} else {
|
||||
// Fallback on earlier versions
|
||||
}
|
||||
dismissViewController(self)
|
||||
}
|
||||
|
||||
@IBAction func setReplaceArtworksState(_ sender: NSButton) {
|
||||
preset.replaceArtworks = sender.state == .off ? true : false
|
||||
}
|
||||
|
||||
@@ -29,11 +29,11 @@ extension PresetManager.Error: LocalizedError {
|
||||
var presets: [Preset]
|
||||
|
||||
@objc var metadataPresets: [MetadataPreset] {
|
||||
return presets.flatMap { $0 as? MetadataPreset }
|
||||
return presets.compactMap { $0 as? MetadataPreset }
|
||||
}
|
||||
|
||||
var queuePresets: [QueuePreset] {
|
||||
return presets.flatMap { $0 as? QueuePreset }
|
||||
return presets.compactMap { $0 as? QueuePreset }
|
||||
}
|
||||
|
||||
private override init() {
|
||||
|
||||
@@ -10,7 +10,6 @@ import Cocoa
|
||||
class PresetPrefsViewController: NSViewController, NSTableViewDataSource, NSTableViewDelegate, NSTextFieldDelegate {
|
||||
|
||||
let presetManager: PresetManager
|
||||
var popover: NSPopover?
|
||||
var currentRow: Int
|
||||
|
||||
@IBOutlet var tableView: NSTableView!
|
||||
@@ -33,10 +32,10 @@ class PresetPrefsViewController: NSViewController, NSTableViewDataSource, NSTabl
|
||||
super.loadView()
|
||||
|
||||
observer = NotificationCenter.default.addObserver(forName: presetManager.updateNotification,
|
||||
object: nil,
|
||||
queue: OperationQueue.main) { [weak self] notification in
|
||||
guard let s = self else { return }
|
||||
s.tableView.reloadData()
|
||||
object: nil,
|
||||
queue: OperationQueue.main) { [weak self] notification in
|
||||
guard let s = self else { return }
|
||||
s.tableView.reloadData()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,43 +93,21 @@ class PresetPrefsViewController: NSViewController, NSTableViewDataSource, NSTabl
|
||||
}
|
||||
|
||||
@IBAction func deletePreset(_ sender: Any) {
|
||||
closePopOver(self)
|
||||
|
||||
let rowIndex = tableView.selectedRow
|
||||
if rowIndex > -1 {
|
||||
presetManager.remove(at: rowIndex)
|
||||
}
|
||||
}
|
||||
|
||||
@IBAction func closePopOver(_ sender: Any) {
|
||||
guard let currentPopover = popover else { return }
|
||||
|
||||
currentPopover.close()
|
||||
popover = nil
|
||||
controller = nil
|
||||
}
|
||||
|
||||
@IBAction func toggleInfoWindow(_ sender: NSView) {
|
||||
let rowIndex = tableView.row(for: sender)
|
||||
|
||||
if currentRow == rowIndex && popover != nil {
|
||||
closePopOver(self)
|
||||
}
|
||||
else {
|
||||
closePopOver(self)
|
||||
|
||||
if let preset = presetManager.presets[rowIndex] as? MetadataPreset {
|
||||
currentRow = rowIndex
|
||||
controller = PresetEditorViewController.init(preset: preset)
|
||||
|
||||
if #available(OSX 10.10, *) {
|
||||
presentViewControllerAsSheet(controller!)
|
||||
} else {
|
||||
popover = NSPopover()
|
||||
popover?.contentViewController = controller
|
||||
popover?.show(relativeTo: sender.bounds, of: sender, preferredEdge: NSRectEdge.maxY)
|
||||
}
|
||||
}
|
||||
|
||||
if let preset = presetManager.presets[rowIndex] as? MetadataPreset {
|
||||
currentRow = rowIndex
|
||||
controller = PresetEditorViewController.init(preset: preset)
|
||||
|
||||
presentViewControllerAsSheet(controller!)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,16 +66,14 @@ static void *SBOptionsViewContex = &SBOptionsViewContex;
|
||||
// Hack to fix crappy anti-aliasing on Yosemite
|
||||
// unfortunately it fixes the checkboxes anti-aliasing,
|
||||
// but break the popup buttons one…
|
||||
if (NSClassFromString(@"NSVisualEffectView")) {
|
||||
self.view.wantsLayer = YES;
|
||||
self.view.wantsLayer = YES;
|
||||
|
||||
for (NSButton *subview in self.view.subviews) {
|
||||
if ([subview isKindOfClass:[NSButton class]]) {
|
||||
NSAttributedString *string = [[NSAttributedString alloc] initWithString:subview.title
|
||||
attributes:@{NSForegroundColorAttributeName:[NSColor labelColor],
|
||||
NSFontAttributeName:[NSFont labelFontOfSize:11]}];
|
||||
subview.attributedTitle = string;
|
||||
}
|
||||
for (NSButton *subview in self.view.subviews) {
|
||||
if ([subview isKindOfClass:[NSButton class]]) {
|
||||
NSAttributedString *string = [[NSAttributedString alloc] initWithString:subview.title
|
||||
attributes:@{NSForegroundColorAttributeName:[NSColor labelColor],
|
||||
NSFontAttributeName:[NSFont labelFontOfSize:11]}];
|
||||
subview.attributedTitle = string;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ static void *SBQueueContex = &SBQueueContex;
|
||||
@property (nonatomic, readonly) NSImage *docImg;
|
||||
|
||||
@property (nonatomic, strong) NSPopover *popover;
|
||||
@property (nonatomic, weak) IBOutlet NSPanel *detachedWindow;
|
||||
|
||||
@property (nonatomic, strong) NSPopover *itemPopover;
|
||||
@property (nonatomic, strong) SBOptionsViewController *windowController;
|
||||
@@ -404,16 +403,6 @@ static void *SBQueueContex = &SBQueueContex;
|
||||
}
|
||||
}
|
||||
|
||||
-(NSWindow *)createOptionsWindow {
|
||||
if (!self.windowController) {
|
||||
self.windowController = [[SBOptionsViewController alloc] initWithOptions:self.options];
|
||||
}
|
||||
_detachedWindow.contentView = self.windowController.view;
|
||||
_detachedWindow.delegate = self;
|
||||
|
||||
return _detachedWindow;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a popover with a SBQueueItem
|
||||
*/
|
||||
@@ -444,16 +433,6 @@ static void *SBQueueContex = &SBQueueContex;
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (NSWindow *)detachableWindowForPopover:(NSPopover *)popover {
|
||||
if (NSAppKitVersionNumber <= 1343) {
|
||||
if (popover == self.popover) {
|
||||
return [self createOptionsWindow];
|
||||
}
|
||||
}
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void)windowWillClose:(NSNotification *)notification {
|
||||
self.windowController = nil;
|
||||
}
|
||||
|
||||
@@ -1270,7 +1270,6 @@
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "org.galad.${PRODUCT_NAME:identifier}";
|
||||
PRODUCT_NAME = Subler;
|
||||
SDKROOT = macosx;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Subler-Bridging-Header.h";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||
SWIFT_VERSION = 4.0;
|
||||
@@ -1336,7 +1335,7 @@
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = "";
|
||||
LIBRARY_SEARCH_PATHS = "";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.9;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.10;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
RUN_CLANG_STATIC_ANALYZER = NO;
|
||||
STRIP_INSTALLED_PRODUCT = NO;
|
||||
@@ -1401,9 +1400,8 @@
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = "";
|
||||
LIBRARY_SEARCH_PATHS = "";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.9;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.10;
|
||||
RUN_CLANG_STATIC_ANALYZER = NO;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||
SWIFT_VERSION = 4.0;
|
||||
USER_HEADER_SEARCH_PATHS = "";
|
||||
|
||||
Reference in new issue
Block a user