diff options
author | culler <culler> | 2020-07-23 21:25:10 (GMT) |
---|---|---|
committer | culler <culler> | 2020-07-23 21:25:10 (GMT) |
commit | 45c939237b9e173457e588379c906a8e82211b78 (patch) | |
tree | b62a5268141213d7d62ad2680e7fdbeed7b05c20 | |
parent | 5508426b3e669226e9da1901ce5cda463d3dee96 (diff) | |
download | tk-45c939237b9e173457e588379c906a8e82211b78.zip tk-45c939237b9e173457e588379c906a8e82211b78.tar.gz tk-45c939237b9e173457e588379c906a8e82211b78.tar.bz2 |
On Sierra the linkColor property must be explicitly declared as a class property.
-rw-r--r-- | macosx/tkMacOSXColor.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c index 758c458..51a28c5 100644 --- a/macosx/tkMacOSXColor.c +++ b/macosx/tkMacOSXColor.c @@ -274,9 +274,15 @@ GetEntryFromPixelCode( */ +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 +@interface NSColor(TkColor) +@property(class, strong, readonly) NSColor *linkColor; +@end +#else @interface NSColor(TkColor) @property(strong, readonly) NSColor *linkColor; @end +#endif static NSColorSpace* sRGB = NULL; static CGFloat windowBackground[4] = |