In macOS, I defined a View(Hereafter referred to as PlayView) for playing Video!
It's normal in my 'Mac mini (Late 2014)' with many computer monitors, But it's wrong with 4K computer monitor —— The video only use 25% of PlayView!
Post
Replies
Boosts
Views
Activity
To use basic knowledge of Swift better! I want to kown more Programming architecture patterns For Swift, And I really want to use them in my project to make my code cleaner and more efficient!
After I create a new project — macOS → App! And I new a NSTrackingArea object, add it on self.view in 'ViewController.swift', as following:
let opt = (
NSTrackingArea.Options.mouseEnteredAndExited.rawValue |
NSTrackingArea.Options.mouseMoved.rawValue
)
let trackingArea = NSTrackingArea(rect: kb_V!.frame, options: NSTrackingArea.Options(rawValue: opt), owner:self, userInfo: nil)
self.view .addTrackingArea(trackingArea)
But it gets the print "Failed to set (contentViewController) user defined inspected property on (NSWindow): trackingArea options 0x3 do not specify when the tracking area is active" when I'm running my project!
I feel so wonder about it, And I want to konw how to fix it~
When our app get notifications, Our devices(iPhone/iPad) can get voice prompt, but without infos(notification prompt box)!
I really cann't figure it out why!