Post

Replies

Boosts

Views

Created

Use NSTrackingArea in project running, get print — Failed to set (contentViewController) user defined inspected property on (NSWindow): trackingArea options 0x3 do not specify when the tracking area is active
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~
1
0
755
Jun ’21
iOS Notifications can get voice prompt, but without infos(notification prompt box)
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!
Replies
2
Boosts
0
Views
624
Activity
Jun ’21
Use NSTrackingArea in project running, get print — Failed to set (contentViewController) user defined inspected property on (NSWindow): trackingArea options 0x3 do not specify when the tracking area is active
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~
Replies
1
Boosts
0
Views
755
Activity
Jun ’21
Programming architecture patterns For Swift
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!
Replies
1
Boosts
0
Views
1.1k
Activity
May ’21
macOS, View for playing Video 4K computer monitor — video only use 25% of it!
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!
Replies
1
Boosts
0
Views
673
Activity
May ’21