aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2014-12-13 20:42:45 +0100
committerMax <post@wickenrode.com>2014-12-13 20:42:45 +0100
commitd5dd8b1eb5b8bfaa040ddc52d603231e4828cec7 (patch)
treedb8c7901e39cf262b20154b806d58030bed07616 /Source
parent28a705f74854d5c34d0e952c0747a512c19fadc2 (diff)
downloadsequelpro-d5dd8b1eb5b8bfaa040ddc52d603231e4828cec7.tar.gz
sequelpro-d5dd8b1eb5b8bfaa040ddc52d603231e4828cec7.tar.bz2
sequelpro-d5dd8b1eb5b8bfaa040ddc52d603231e4828cec7.zip
Attempt 1 to fix building on 10.7
Diffstat (limited to 'Source')
-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