diff --git a/Sparkle/SUTouchBarButtonGroup.m b/Sparkle/SUTouchBarButtonGroup.m index d70e9c40..ef27d131 100644 --- a/Sparkle/SUTouchBarButtonGroup.m +++ b/Sparkle/SUTouchBarButtonGroup.m @@ -8,6 +8,12 @@ #import "SUTouchBarButtonGroup.h" +#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200 +@interface NSButton (SierraSDK) ++ (instancetype)buttonWithTitle:(NSString*)title target:(id)target action:(SEL)action; +@end +#endif + @implementation SUTouchBarButtonGroup @synthesize buttons = _buttons; diff --git a/Sparkle/SUTouchBarForwardDeclarations.h b/Sparkle/SUTouchBarForwardDeclarations.h index 49ac1d53..bc228c2b 100644 --- a/Sparkle/SUTouchBarForwardDeclarations.h +++ b/Sparkle/SUTouchBarForwardDeclarations.h @@ -57,7 +57,6 @@ NS_CLASS_AVAILABLE_MAC(10_12_2) - (instancetype)initWithIdentifier:(NSTouchBarItemIdentifier)identifier NS_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; - (instancetype)init NS_UNAVAILABLE; -+ (instancetype)buttonWithTitle:(NSString *)title target:(nullable id)target action:(nullable SEL)action NS_AVAILABLE_MAC(10_12); @property (readonly, copy) NSTouchBarItemIdentifier identifier; @property NSTouchBarItemPriority visibilityPriority;