# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1602721436 0 # Node ID 6740154cec686ee76121ea4f241e13b65533c951 # Parent 25fc0f438c6d8e9e1828ae3cd07aa02da993f44c Mac: Push the NSView changes back to Lion 10.7 and fix building on Lion. diff -r 25fc0f438c6d -r 6740154cec68 mac/dw.m --- a/mac/dw.m Wed Oct 14 23:44:25 2020 +0000 +++ b/mac/dw.m Thu Oct 15 00:23:56 2020 +0000 @@ -27,6 +27,7 @@ /* Create a define to let us know to include Lion specific features */ #if defined(MAC_OS_X_VERSION_10_7) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED)) #define BUILDING_FOR_LION +#define DW_USE_NSVIEW #endif /* Create a define to let us know to include Mountain Lion specific features */ @@ -52,7 +53,6 @@ #define DWCalendarUnitYear NSCalendarUnitYear #define DWCalendarIdentifierGregorian NSCalendarIdentifierGregorian #define BUILDING_FOR_YOSEMITE -#define DW_USE_NSVIEW #else #define DWModalResponseOK NSOKButton #define DWModalResponseCancel NSCancelButton @@ -7526,10 +7526,12 @@ { NSString *title = [NSString stringWithUTF8String:titles[z]]; NSTableColumn *column = [[NSTableColumn alloc] initWithIdentifier:title]; -#ifdef DW_USE_NSVIEW +#ifdef BUILDING_FOR_YOSEMITE [column setTitle:title]; #else [[column headerCell] setStringValue:title]; +#endif +#ifndef DW_USE_NSVIEW if(flags[z] & DW_CFA_BITMAPORICON) { NSImageCell *imagecell = [[NSImageCell alloc] init];