aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPActivityTextFieldCell.m5
-rw-r--r--Source/SPTextAndLinkCell.m5
2 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPActivityTextFieldCell.m b/Source/SPActivityTextFieldCell.m
index 5eb2deda..c088c9cb 100644
--- a/Source/SPActivityTextFieldCell.m
+++ b/Source/SPActivityTextFieldCell.m
@@ -33,6 +33,11 @@
#define FAVORITE_NAME_FONT_SIZE 12.0f
+#ifndef NS_OPTIONS
+// This type is available since 10.5 but only got a "name" in 10.8
+typedef NSUInteger NSCellHitResult;
+#endif
+
@interface SPActivityTextFieldCell (PrivateAPI)
- (NSAttributedString *)constructSubStringAttributedString;
diff --git a/Source/SPTextAndLinkCell.m b/Source/SPTextAndLinkCell.m
index 059ad6ec..86d8ca9d 100644
--- a/Source/SPTextAndLinkCell.m
+++ b/Source/SPTextAndLinkCell.m
@@ -42,6 +42,11 @@ static inline NSRect SPTextLinkRectFromCellRect(NSRect inRect)
return NSMakeRect(inRect.origin.x + inRect.size.width - 15, inRect.origin.y - 1, 12, inRect.size.height);
}
+#ifndef NS_OPTIONS
+// This type is available since 10.5 but only got a "name" in 10.8
+typedef NSUInteger NSCellHitResult;
+#endif
+
#pragma mark -
#pragma mark Setup and teardown