Permalink
Browse files

Make this compile on 10.6 and without a prefix header.

  • Loading branch information...
1 parent 58b38f8 commit c3318280c4ac5f514a9a066cd077369c2163a7f4 @uliwitness committed Apr 27, 2011
Showing with 12 additions and 4 deletions.
  1. +1 −1 NSCursor+Box.h
  2. +1 −1 NSCursor+CrossHair.h
  3. +4 −0 UKColorListView.m
  4. +4 −0 UKLineSizeView.m
  5. +1 −1 UKPaintRoundrectTool.h
  6. +1 −1 UKPaintTool.h
View
2 NSCursor+Box.h
@@ -6,7 +6,7 @@
// Copyright (c) 2003 M. Uli Kusterer. All rights reserved.
//
-#import <Foundation/Foundation.h>
+#import <AppKit/AppKit.h>
@interface NSCursor (UKBox)
View
2 NSCursor+CrossHair.h
@@ -6,7 +6,7 @@
// Copyright (c) 2003 M. Uli Kusterer. All rights reserved.
//
-#import <Foundation/Foundation.h>
+#import <AppKit/AppKit.h>
@interface NSCursor (UKCrossHair)
View
4 UKColorListView.m
@@ -139,7 +139,11 @@ -(void) drawRect: (NSRect)rect
colorName = [[currPanelColor colorUsingColorSpaceName: NSNamedColorSpace] localizedColorNameComponent];
NSRect bgBox = { { 0, 0 }, { 0, 0 } };
+ #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2
+ bgBox.size.height = 18.0;
+ #else
bgBox.size.height = [descFont defaultLineHeightForFont] +SWATCH_BORDER;
+ #endif
bgBox.size.width = [self bounds].size.width;
[[NSColor controlShadowColor] set];
View
4 UKLineSizeView.m
@@ -69,7 +69,11 @@ -(void) drawRect: (NSRect)rect
NSDictionary* selSizeStrAttributes = [NSDictionary dictionaryWithObjectsAndKeys: descFont, NSFontAttributeName, [NSColor selectedTextColor], NSForegroundColorAttributeName, nil];
boxBot = botPos.y;
+ #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2
+ botPos.y += 18.0 +2;
+ #else
botPos.y += [descFont defaultLineHeightForFont] +2;
+ #endif
[descFont set];
// Make sure line samples look like taken out of a line:
View
2 UKPaintRoundrectTool.h
@@ -6,7 +6,7 @@
// Copyright (c) 2004 M. Uli Kusterer. All rights reserved.
//
-#import <Foundation/Foundation.h>
+#import <AppKit/AppKit.h>
#import "UKPaintTool.h"
View
2 UKPaintTool.h
@@ -6,7 +6,7 @@
// Copyright (c) 2003 M. Uli Kusterer. All rights reserved.
//
-#import <Foundation/Foundation.h>
+#import <AppKit/AppKit.h>
@class UKPaintView;

0 comments on commit c331828

Please sign in to comment.