AccessibilityUIExamples/Application/WindowController.swift
/* |
See LICENSE folder for this sample’s licensing information. |
Abstract: |
The sample's main window controller. |
*/ |
import Cocoa |
import Foundation |
class WindowController: NSWindowController { |
override func windowDidLoad() { |
super.windowDidLoad() |
// Let the window accept (and distribute) mouse-moved events. |
window?.acceptsMouseMovedEvents = true |
// Window is not transparent to mouse events. |
window?.ignoresMouseEvents = false |
} |
} |
Copyright © 2017 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2017-09-12