| | |
| | | enum QuickSearchEngine { |
| | | static func makeDocuments(apps: [AppInfo], store: TagDatabase.Store) -> [QuickSearchDocument] { |
| | | apps |
| | | .filter { !AppIndexer.isNestedInsideAppBundle($0.path) } |
| | | .filter { !AppIndexer.isInternalHelperAppPath($0.path) } |
| | | .map { app in |
| | | let localizedNames = uniqueOrdered(AppDisplayNameResolver.searchAliases(for: app)) |
| | | let internalBundleNames = internalBundleNames(for: app) |
| | |
| | | trackingAreaRef = area |
| | | } |
| | | |
| | | override func hitTest(_ point: NSPoint) -> NSView? { |
| | | guard !isHidden, alphaValue > 0, bounds.contains(point) else { return nil } |
| | | return self |
| | | } |
| | | |
| | | override func acceptsFirstMouse(for event: NSEvent?) -> Bool { |
| | | true |
| | | } |
| | | |
| | | override func mouseEntered(with event: NSEvent) { |
| | | super.mouseEntered(with: event) |
| | | if let result { |