A small menubar app that allows you to switch between R versions quickly (if you have multiple versions of R framework installed).
https://rud.is/rswitch
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
863 B
41 lines
863 B
5 years ago
|
//
|
||
|
// ToolbarWebViewController.swift
|
||
|
// wktest
|
||
|
//
|
||
|
// Created by hrbrmstr on 9/9/19.
|
||
|
// Copyright © 2019 Bob Rudis. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Cocoa
|
||
|
|
||
|
class ToolbarWebViewController: NSWindowController {
|
||
|
|
||
|
@IBOutlet weak var nicknname: NSTextField!
|
||
|
@IBOutlet weak var url: NSTextField!
|
||
|
@IBOutlet weak var deleteSession: NSButton!
|
||
|
|
||
|
@IBAction func performDeleteSession(_ sender: Any) {
|
||
|
|
||
|
let appDelegate = NSApp.delegate as! AppDelegate
|
||
|
appDelegate.sess.deleteSession(title: nicknname.stringValue)
|
||
|
|
||
|
super.close()
|
||
|
|
||
|
}
|
||
|
|
||
|
override func windowWillLoad() {
|
||
|
super.windowWillLoad()
|
||
|
shouldCascadeWindows = false
|
||
|
}
|
||
|
|
||
|
override func windowDidLoad() {
|
||
|
super.windowDidLoad()
|
||
|
}
|
||
|
|
||
|
override func showWindow(_ sender: Any?) {
|
||
|
super.showWindow(sender)
|
||
|
window?.setFrameAutosaveName(nicknname.stringValue)
|
||
|
}
|
||
|
|
||
|
}
|