diff --git a/Podfile b/Podfile index 801bdd5..657d4e5 100644 --- a/Podfile +++ b/Podfile @@ -2,5 +2,5 @@ platform :osx, '10.10' use_frameworks! target 'SpotMenu' do - pod 'Spotify', '~> 0.0.1' + pod 'Spotify', '~> 0.1' end diff --git a/Podfile.lock b/Podfile.lock index 71195dd..cd6411d 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -1,12 +1,12 @@ PODS: - - Spotify (0.0.1) + - Spotify (0.1.0) DEPENDENCIES: - - Spotify (~> 0.0.1) + - Spotify (~> 0.1) SPEC CHECKSUMS: - Spotify: 2816b492c3710c6c9890dc86713d1df76a7b7fda + Spotify: bddc9cea36c82468ca82f40bf815d0445edb0988 -PODFILE CHECKSUM: cc50ce99c03a2d3ff22497a8217adfb903782959 +PODFILE CHECKSUM: c9d8619b1852aaef75398476b7ed9c39cebe7352 COCOAPODS: 1.2.0 diff --git a/SpotMenu/PopOver.xib b/SpotMenu/PopOver.xib index f41b5c8..5c004c9 100644 --- a/SpotMenu/PopOver.xib +++ b/SpotMenu/PopOver.xib @@ -41,26 +41,26 @@ @@ -143,8 +154,8 @@ - - + + @@ -158,5 +169,6 @@ + diff --git a/SpotMenu/ViewController.swift b/SpotMenu/ViewController.swift index d674bce..a10819f 100644 --- a/SpotMenu/ViewController.swift +++ b/SpotMenu/ViewController.swift @@ -132,6 +132,10 @@ extension ViewController { NSApplication.shared().terminate(sender) } + @IBAction func openSpotify(_ sender: Any) { + Spotify.activateSpotify() + } + @IBAction func positionSliderAction(_ sender: AnyObject) { Spotify.currentTrack.positionPercentage = positionSlider.doubleValue/100.0 }