From 41a67f02bbbe7de6241470f472a96ed001cd7690 Mon Sep 17 00:00:00 2001 From: Duncan Cunningham Date: Fri, 9 Feb 2024 21:59:44 +0100 Subject: [PATCH] Stub out NSScreen deviceDescription --- AppKit/NSScreen.m | 4 ++++ AppKit/include/AppKit/NSScreen.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/AppKit/NSScreen.m b/AppKit/NSScreen.m index d3f4e3f0..6461f185 100644 --- a/AppKit/NSScreen.m +++ b/AppKit/NSScreen.m @@ -69,6 +69,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ NSStringFromRect(_visibleFrame)]; } +- (NSDictionary *) deviceDescription { + return @{}; +} + @end @implementation NSScreen (Darling) diff --git a/AppKit/include/AppKit/NSScreen.h b/AppKit/include/AppKit/NSScreen.h index a1ffa0e4..19f493c1 100644 --- a/AppKit/include/AppKit/NSScreen.h +++ b/AppKit/include/AppKit/NSScreen.h @@ -20,6 +20,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #import #import +typedef NSString *NSDeviceDescriptionKey; + @interface NSScreen : NSObject { NSRect _frame; NSRect _visibleFrame; @@ -27,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ CGDirectDisplayID _directDisplayID; } +@property(readonly, copy) NSDictionary *deviceDescription; + + (NSScreen *) mainScreen; + (NSArray *) screens;