File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 75
75
#import " GSGuiPrivate.h"
76
76
#import " AppKit/NSTextFieldCell.h"
77
77
#import " AppKit/NSSearchFieldCell.h"
78
+
79
+ // Use NSAppleEventDescriptor as a proxy for detecting the Eggplant fork of libs-base
80
+ #if !__has_include("Foundation/NSAppleEventDescriptor.h")
81
+ #define HAVE_NSCellUndoManager
82
+ #endif
83
+
78
84
static Class colorClass;
79
85
static Class cellClass;
80
86
static Class fontClass;
@@ -2356,6 +2362,7 @@ incorrectly be reduced to zero (since the text object has no contents at
2356
2362
_cell.in_editing = YES ;
2357
2363
2358
2364
// TESTPLANT-MAL-12282916: Paul Landers added this code...need to keep it...
2365
+ #ifdef HAVE_NSCellUndoManager
2359
2366
if ([textObject isKindOfClass: [NSTextView class ]])
2360
2367
{
2361
2368
NSCellUndoManager * undoManager = [[NSCellUndoManager alloc ] init ];
@@ -2364,7 +2371,7 @@ incorrectly be reduced to zero (since the text object has no contents at
2364
2371
[undoManager release ];
2365
2372
[(NSTextView *)textObject setAllowsUndo: YES ];
2366
2373
}
2367
-
2374
+ # endif
2368
2375
2369
2376
#if 1
2370
2377
// Testplant-MAL-2015-06-20: merging removal causes focus ring issues...
You can’t perform that action at this time.
0 commit comments