Re: Is it necessary to suspend/resume a dispatch queue/source on sleep/wake notifications?

2020-02-06 Thread Jens Alfke via Cocoa-dev
> On Feb 6, 2020, at 9:16 AM, Matt DeFoor via Cocoa-dev > wrote: > > Does anyone know if it is necessary to dispatch_suspend/resume a queue or > source when sleep/wake notifications triggered in a macOS app? I can’t imagine why you’d need to. When the computer goes to sleep, the CPU stops, so

Is it necessary to suspend/resume a dispatch queue/source on sleep/wake notifications?

2020-02-06 Thread Matt DeFoor via Cocoa-dev
Does anyone know if it is necessary to dispatch_suspend/resume a queue or source when sleep/wake notifications triggered in a macOS app? I've read the docs and done some searching but couldn't find anything definitive other than the concurrency programming guide states that all timer dispatch sour

How to present a web view while supporting 10.9?

2020-02-06 Thread John Brownie via Cocoa-dev
My app currently supports 10.9, and I want to add a feature that displays an HTML document stored locally (in the bundle). The obvious way is to have a window which contains a web view. However, WKWebView is only available in 10.10, and WebView is deprecated. If it were a matter of calling a m

Calling AVPlayer seekToTime: results in incorrect scrollWheel behavior

2020-02-06 Thread Konidaris Christos via Cocoa-dev
Any ideas on this problem? I tried with the latest macOS 10.15.3 and the problem is still there. > Hi all, > > In our macOS apps we use our custom movie controller view. From there we call > the AVPlayer method seekToTime:(CMTime)time to jump to specific movie times > to be displayed in a AVPl