1
0
Fork 0
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:
Anthony Nicholls 2024-07-24 14:52:36 +01:00
parent cddd43891d
commit b77249ad52

View file

@ -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