1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

Import AppKit rather than Cocoa

Importing Cocoa pulls in CoreData, which we're not using.

https://github.com/brentsimmons/NetNewsWire/blob/master/Technotes/CodingGuidelines.md
This commit is contained in:
Daniel Barber 2019-04-29 08:59:04 -04:00
parent b311005393
commit 4d2a8087ed
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
34 changed files with 34 additions and 34 deletions

View File

@ -6,7 +6,7 @@
// Copyright © 2018 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
import MediaKeyTap

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
import Differ

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class AlbumViewItem: NSCollectionViewItem {
var observer: NSKeyValueObservation?

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class MainSplitViewController: NSSplitViewController {
override func keyDown(with event: NSEvent) {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
class QueueViewController: NSViewController,

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
class WindowController: NSWindowController {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import PromiseKit
class AlbumDataSource: NSObject, NSCollectionViewDataSource {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class QueueDataSource: NSObject, NSOutlineViewDataSource {
var queue: [QueueItem] = []

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
extension CGColor {
static let albumBorderColorLight = NSColor.black.withAlphaComponent(0.15).cgColor

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
extension NSEvent {
static let keyCodeSpace: UInt16 = 49

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
extension NSFont {
static let systemFontRegular = systemFont(ofSize: 13, weight: .regular)

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
extension NSImage {
static let playIcon = NSImage(named: "playButton")

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
extension NSUserInterfaceItemIdentifier {
static let queueSongTitleColumn = NSUserInterfaceItemIdentifier("songTitleColumn")

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class AlbumViewLayout: NSCollectionViewFlowLayout {
let maxItemWidth: CGFloat = 180

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import CryptoSwift
struct Album {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class TrackTimer: NSObject {
var timer: Timer?

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class CoverArtQueue {
static let shared = CoverArtQueue()

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class CoverArtPrefsController: NSViewController {
override func viewDidLoad() {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
class GeneralPrefsViewController: NSViewController {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class PreferencesViewController: NSTabViewController {
private lazy var tabViewSizes: [String : NSSize] = [:]

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class PreferencesWindowController: NSWindowController, NSWindowDelegate {
override func windowDidLoad() {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import PromiseKit
class CoverArtService {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import PromiseKit
extension CoverArtService {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import PromiseKit
extension CoverArtService {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import SwiftyJSON
import PromiseKit
import PMKFoundation

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
struct SongNotifierService {
let song: Song

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
struct ResetAlbumListCoverArtAction: Action {}

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
struct UpdateCurrentCoverArtAction: Action {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
struct PlayerState: StateType {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
func playerReducer(action: Action, state: PlayerState?) -> PlayerState {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
func queueReducer(action: Action, state: QueueState?) -> QueueState {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class AlbumItemView: NSView {
var trackingArea: NSTrackingArea?

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
import ReSwift
class CurrentCoverArtView: NSImageView {

View File

@ -6,7 +6,7 @@
// Copyright © 2019 Dan Barber. All rights reserved.
//
import Cocoa
import AppKit
class MainWindow: NSWindow {
override func keyDown(with event: NSEvent) {