1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00
persephone/Persephone/AppDelegate.swift
2019-02-08 13:49:55 -05:00

25 lines
559 B
Swift

//
// AppDelegate.swift
// Persephone
//
// Created by Daniel Barber on 2018/7/31.
// Copyright © 2018 Dan Barber. All rights reserved.
//
import Cocoa
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
static let mpdClient = MPDClient(
withDelegate: NotificationsController() as MPDClientDelegate
)
func applicationDidFinishLaunching(_ aNotification: Notification) {
AppDelegate.mpdClient.connect()
}
func applicationWillTerminate(_ aNotification: Notification) {
AppDelegate.mpdClient.disconnect()
}
}