mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
ScopedDisplayLink: Ignore deprecation warning in macOS 15.0 SDK
This commit is contained in:
parent
cddd43891d
commit
b77249ad52
1 changed files with 10 additions and 0 deletions
|
|
@ -103,6 +103,14 @@ private:
|
|||
Manages the lifetime of a CVDisplayLinkRef for a single display, and automatically starts and
|
||||
stops it.
|
||||
*/
|
||||
|
||||
// From macOS 15+, warnings suggest the CVDisplayLink functions can be replaced with
|
||||
// NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or
|
||||
// NSScreen.displayLink(target:selector:) all of which were only introduced in macOS 14+ however,
|
||||
// it's not clear how these methods can be used to replace all use cases
|
||||
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
||||
|
||||
class ScopedDisplayLink
|
||||
{
|
||||
public:
|
||||
|
|
@ -179,6 +187,8 @@ private:
|
|||
JUCE_DECLARE_NON_MOVEABLE (ScopedDisplayLink)
|
||||
};
|
||||
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
|
||||
//==============================================================================
|
||||
/*
|
||||
Holds a ScopedDisplayLink for each screen. When the screen configuration changes, the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue