Skip to content

Commit

Permalink
Merge pull request #1 from Cosmo/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Cosmo authored Sep 5, 2019
2 parents e5afdd7 + 100f64b commit 91bd7c1
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Clippy macOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Cocoa
class AppDelegate: NSObject, NSApplicationDelegate {
var window: NSWindow?
let debug = false
let applicationName = "Clippy"

func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
Expand Down Expand Up @@ -45,11 +46,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
let applicationMenuItem = mainMenu.addItem(withTitle: "Application", action: nil, keyEquivalent: "")
let applicationSubMenu = NSMenu(title:"Application")

applicationSubMenu.addItem(NSMenuItem(title: "hello", action: nil, keyEquivalent: ""))

let title = NSLocalizedString("Hide", comment: "Hide menu item") + " " + "Clippy"
let hideMenuItem = applicationSubMenu.addItem(withTitle: title, action: #selector(NSApplication.hide(_:)), keyEquivalent:"h")
hideMenuItem.target = NSApp
applicationSubMenu.addItem(withTitle: "Quit \(applicationName)",
action: #selector(NSApplication.terminate(_:)), keyEquivalent: "q")

mainMenu.setSubmenu(applicationSubMenu, for: applicationMenuItem)

Expand Down
2 changes: 2 additions & 0 deletions Clippy macOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.entertainment</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
78 changes: 78 additions & 0 deletions Clippy.xcodeproj/xcshareddata/xcschemes/Clippy macOS.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1100"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "453D7F8C231F189600995AB3"
BuildableName = "Clippy.app"
BlueprintName = "Clippy macOS"
ReferencedContainer = "container:Clippy.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "453D7F8C231F189600995AB3"
BuildableName = "Clippy.app"
BlueprintName = "Clippy macOS"
ReferencedContainer = "container:Clippy.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "453D7F8C231F189600995AB3"
BuildableName = "Clippy.app"
BlueprintName = "Clippy macOS"
ReferencedContainer = "container:Clippy.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

0 comments on commit 91bd7c1

Please sign in to comment.