[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -getRed:green:blue:alpha: not defined for the NSColor

From: Alan Third
Subject: Re: -getRed:green:blue:alpha: not defined for the NSColor
Date: Sun, 14 Jul 2019 11:24:11 +0100
User-agent: Mutt/1.12.0 (2019-05-25)

On Sat, Jul 13, 2019 at 11:10:29AM -0700, Keith David Bershatsky wrote:
> The following change made with
> 9624f609493da7c08016ba00d6895bad0fe26a0e is what prevents Emacs on
> OSX 10.6.8 from working. Would it be possible for the Emacs team to
> put in a condition that permits Emacs on OSX 10.6 to use the two
> lines of code that were removed? [I do not know what is the earliest
> version of OSX that can make use of two new lines of code without
> breaking.]

Hi Keith, thanks for tracking this down. Can you try this change:

modified   src/nsimage.m
@@ -310,6 +310,6 @@ - (instancetype)setXBMColor: (NSColor *)color
     return self;
-  if ([color colorSpace] != [NSColorSpace deviceRGBColorSpace])
-    rgbColor = [color colorUsingColorSpace:[NSColorSpace deviceRGBColorSpace]];
+  if ([color colorSpace] != [NSColorSpace genericRGBColorSpace])
+    rgbColor = [color colorUsingColorSpace:[NSColorSpace 
     rgbColor = color;

If that doesn’t work I’ll make your suggested change.
Alan Third

reply via email to

[Prev in Thread] Current Thread [Next in Thread]