Browse Source

Uncommenting 11.0 stuff.

pull/92/head
Abhishek 4 years ago
parent
commit
de5f0dd60a
  1. 10
      Clocker/Onboarding/OnboardingParentViewController.swift
  2. 6
      Clocker/Onboarding/OnboardingSearchController.swift
  3. 3
      Clocker/Overall App/Logger.swift

10
Clocker/Onboarding/OnboardingParentViewController.swift

@ -68,11 +68,11 @@ class OnboardingParentViewController: NSViewController {
[negativeButton, backButton].forEach { $0?.isHidden = true } [negativeButton, backButton].forEach { $0?.isHidden = true }
// if #available(OSX 11.0, *) { if #available(OSX 11.0, *) {
// negativeButton.controlSize = .large negativeButton.controlSize = .large
// positiveButton.controlSize = .large positiveButton.controlSize = .large
// backButton.controlSize = .large backButton.controlSize = .large
// } }
backButton.title = NSLocalizedString("Back", backButton.title = NSLocalizedString("Back",
comment: "Button title for going back to the previous screen") comment: "Button title for going back to the previous screen")

6
Clocker/Onboarding/OnboardingSearchController.swift

@ -34,9 +34,9 @@ class OnboardingSearchController: NSViewController {
resultsTableView.dataSource = self resultsTableView.dataSource = self
resultsTableView.target = self resultsTableView.target = self
resultsTableView.doubleAction = #selector(doubleClickAction(_:)) resultsTableView.doubleAction = #selector(doubleClickAction(_:))
// if #available(OSX 11.0, *) { if #available(OSX 11.0, *) {
// resultsTableView.style = .fullWidth resultsTableView.style = .fullWidth
// } }
setup() setup()

3
Clocker/Overall App/Logger.swift

@ -1,10 +1,13 @@
// Copyright © 2015 Abhishek Banthia // Copyright © 2015 Abhishek Banthia
import Cocoa import Cocoa
import os
import os.log import os.log
import os.signpost import os.signpost
class Logger: NSObject { class Logger: NSObject {
let logObjc = OSLog(subsystem: "com.abhishek.Clocker", category: "app")
class func log(object annotations: [String: Any]?, for event: NSString) { class func log(object annotations: [String: Any]?, for event: NSString) {
if #available(OSX 10.14, *) { if #available(OSX 10.14, *) {
os_log(.default, "[%@] - [%@]", event, annotations ?? [:]) os_log(.default, "[%@] - [%@]", event, annotations ?? [:])

Loading…
Cancel
Save