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.
22 lines
471 B
22 lines
471 B
//
|
|
// HandleSwitchTo.swift
|
|
// RSwitch
|
|
//
|
|
// Created by hrbrmstr on 8/25/19.
|
|
// Copyright © 2019 Bob Rudis. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
|
|
import Foundation
|
|
import Cocoa
|
|
|
|
extension AppDelegate {
|
|
|
|
@objc func switch_to(_ sender: NSMenuItem?) {
|
|
(sender!.representedObject as! NSRunningApplication).activate(options: NSApplication.ActivationOptions.activateIgnoringOtherApps)
|
|
(sender!.representedObject as! NSRunningApplication).unhide()
|
|
}
|
|
|
|
}
|
|
|