|
From: | Rik |
Subject: | Re: Problem with Disable Mac App Nap |
Date: | Tue, 29 Oct 2019 08:14:41 -0700 |
On 10/28/2019 08:57 PM,
address@hidden wrote:
The compile warnings about old-style casting are easy to resolve by using static_cast operator. See https://hg.savannah.gnu.org/hgweb/octave/rev/a1907c3fdef4. In that changeset I also took the opportunity to make disable_app_nap a file local function, rather than a private member function of the base_qobject class. This function never needs to be exposed as part of the API of the class so this felt better. I don't think we're that far from a solution. See this blog post: https://www.mikeash.com/pyblog/objc_msgsends-new-prototype.html. Quoting from it, "Apple's new OSes are out. If you've looked through the documentation, you may have noticed that the prototype for objc_msgSend has changed.
Previously, it was declared as a function that took id ,
SEL , and variadic arguments after that, and returned id .
Now it's declared as a function that takes and returns void ."
The date of the blog post was 10/11/2010 so this is a recent change.This seems easy enough to resolve. There needs to be a configure test to check whether objc_msgSend has the old or new prototype and then call the correct one. --Rik |
[Prev in Thread] | Current Thread | [Next in Thread] |