From 2cf75b4e8cee3a50fa95cdc05926a846a4e10972 Mon Sep 17 00:00:00 2001 From: kmikiy Date: Tue, 21 Feb 2017 13:47:16 +0100 Subject: [PATCH] podfile updated. can now open Spotify UI from SpotMenu --- Podfile | 2 +- Podfile.lock | 8 ++++---- SpotMenu/PopOver.xib | 28 ++++++++++++++++++++-------- SpotMenu/ViewController.swift | 4 ++++ 4 files changed, 29 insertions(+), 13 deletions(-) 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 }