Browse Source

1.2.0

tags/v1.2.0 v1.2.0
boB Rudis 5 years ago
parent
commit
630ef3ea53
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 20
      RSwitch/AppDelegate.swift
  2. 10
      RSwitch/Base.lproj/Main.storyboard
  3. BIN
      releases/RSwitch-1.2.0.app.zip
  4. BIN
      rswitch-menu-example.png

20
RSwitch/AppDelegate.swift

@ -123,6 +123,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
@objc func download_latest_rstudio(_ sender: NSMenuItem?) { @objc func download_latest_rstudio(_ sender: NSMenuItem?) {
let url = URL(string: "https://dailies.rstudio.com/rstudio/oss/mac/") let url = URL(string: "https://dailies.rstudio.com/rstudio/oss/mac/")
do { do {
let html = try String.init(contentsOf: url!) let html = try String.init(contentsOf: url!)
let document = try SwiftSoup.parse(html) let document = try SwiftSoup.parse(html)
@ -142,23 +143,25 @@ class AppDelegate: NSObject, NSApplicationDelegate {
try FileManager.default.copyItem(at: tempURL, to: dlfile) try FileManager.default.copyItem(at: tempURL, to: dlfile)
NSWorkspace.shared.openFile(dldir.path, withApplication: "Finder") NSWorkspace.shared.openFile(dldir.path, withApplication: "Finder")
DispatchQueue.main.async { infoAlert("Download of latest RStudio daily successful.") }
} catch { } catch {
//infoAlert("Error downloading and saving file.") DispatchQueue.main.async { infoAlert("Error downloading and saving latest RStudio daily.") }
} }
} else { } else {
// infoAlert("File not found.") DispatchQueue.main.async { infoAlert("Latest RStudio daily not found.") }
} }
} else { } else {
//infoAlert("Error downloading file.") DispatchQueue.main.async { infoAlert("Error downloading latest RStudio daily.") }
} }
} }
task.resume() task.resume()
} catch { } catch {
// error DispatchQueue.main.async { infoAlert("Error downloading latrest RStudio daily.") }
} }
} }
@ -179,16 +182,19 @@ class AppDelegate: NSObject, NSApplicationDelegate {
try FileManager.default.copyItem(at: tempURL, to: dlfile) try FileManager.default.copyItem(at: tempURL, to: dlfile)
NSWorkspace.shared.openFile(dldir.path, withApplication: "Finder") NSWorkspace.shared.openFile(dldir.path, withApplication: "Finder")
DispatchQueue.main.async { infoAlert("Download of latest r-devel successful.") }
} catch { } catch {
//infoAlert("Error downloading and saving file.") DispatchQueue.main.async { infoAlert("Error downloading and saving latest r-devel .") }
} }
} else { } else {
// infoAlert("File not found.") DispatchQueue.main.async { infoAlert("Latest r-devel file not found.") }
} }
} else { } else {
//infoAlert("Error downloading file.") DispatchQueue.main.async { infoAlert("Error downloading latest r-devel .") }
} }
} }

10
RSwitch/Base.lproj/Main.storyboard

@ -734,14 +734,14 @@
<textView ambiguous="YES" editable="NO" drawsBackground="NO" importsGraphics="NO" verticallyResizable="YES" smartInsertDelete="YES" id="kWH-Et-k6l"> <textView ambiguous="YES" editable="NO" drawsBackground="NO" importsGraphics="NO" verticallyResizable="YES" smartInsertDelete="YES" id="kWH-Et-k6l">
<rect key="frame" x="0.0" y="0.0" width="463" height="223"/> <rect key="frame" x="0.0" y="0.0" width="463" height="223"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="textColor" name="alternateSelectedControlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="alternatingContentBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="alternatingContentBackgroundColor" catalog="System" colorSpace="catalog"/>
<size key="minSize" width="463" height="223"/> <size key="minSize" width="463" height="223"/>
<size key="maxSize" width="463" height="10000000"/> <size key="maxSize" width="463" height="10000000"/>
<attributedString key="textStorage"> <attributedString key="textStorage">
<fragment> <fragment>
<string key="content"> <string key="content">
RSwitch v1.1.0 RSwitch v1.2.0
Copyright © 2019 Bob Rudis Copyright © 2019 Bob Rudis
@ -749,14 +749,14 @@ MIT Licensed
</string> </string>
<attributes> <attributes>
<color key="NSColor" name="alternateSelectedControlTextColor" catalog="System" colorSpace="catalog"/> <color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/>
<font key="NSFont" metaFont="system" size="17"/> <font key="NSFont" metaFont="system" size="17"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/> <paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes> </attributes>
</fragment> </fragment>
<fragment content="https://git.rud.is/hrbrmstr/RSwitch"> <fragment content="https://git.rud.is/hrbrmstr/RSwitch">
<attributes> <attributes>
<color key="NSColor" name="alternateSelectedControlTextColor" catalog="System" colorSpace="catalog"/> <color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/>
<font key="NSFont" metaFont="system" size="17"/> <font key="NSFont" metaFont="system" size="17"/>
<url key="NSLink" string="https://git.rud.is/hrbrmstr/RSwitch"/> <url key="NSLink" string="https://git.rud.is/hrbrmstr/RSwitch"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/> <paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
@ -768,7 +768,7 @@ MIT Licensed
dial app icon by IconMark from the Noun Project dial app icon by IconMark from the Noun Project
</string> </string>
<attributes> <attributes>
<color key="NSColor" name="alternateSelectedControlTextColor" catalog="System" colorSpace="catalog"/> <color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/>
<font key="NSFont" metaFont="system" size="17"/> <font key="NSFont" metaFont="system" size="17"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/> <paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes> </attributes>

BIN
releases/RSwitch-1.2.0.app.zip

Binary file not shown.

BIN
rswitch-menu-example.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Loading…
Cancel
Save