Permalink
Browse files

Fixed CoreText include for MacOS target.

  • Loading branch information...
1 parent 27811bc commit 2c45232b8534f2311acdc05f9306277af320971d @jcbertin committed Jun 20, 2012
View
@@ -1,5 +1,7 @@
#if TARGET_OS_IPHONE
#import <CoreText/CoreText.h>
+#elif TARGET_OS_MAC
+#import <ApplicationServices/ApplicationServices.h>
#endif
// global constants
@@ -9,7 +9,11 @@
#import "DTCoreTextFontCollection.h"
#import "DTCoreTextFontDescriptor.h"
+#if TARGET_OS_IPHONE
#import <CoreText/CoreText.h>
+#elif TARGET_OS_MAC
+#import <ApplicationServices/ApplicationServices.h>
+#endif
@interface DTCoreTextFontCollection ()
@@ -8,7 +8,11 @@
+#if TARGET_OS_IPHONE
#import <CoreText/CoreText.h>
+#elif TARGET_OS_MAC
+#import <ApplicationServices/ApplicationServices.h>
+#endif
@class DTCoreTextLayoutLine;
@class DTTextAttachment;
@@ -7,7 +7,11 @@
//
+#if TARGET_OS_IPHONE
#import <CoreText/CoreText.h>
+#elif TARGET_OS_MAC
+#import <ApplicationServices/ApplicationServices.h>
+#endif
@class DTCoreTextLayoutLine;
@class DTTextBlock;
@@ -7,7 +7,11 @@
//
+#if TARGET_OS_IPHONE
#import <CoreText/CoreText.h>
+#elif TARGET_OS_MAC
+#import <ApplicationServices/ApplicationServices.h>
+#endif
@class DTCoreTextLayoutFrame;
@@ -8,7 +8,11 @@
+#if TARGET_OS_IPHONE
#import <CoreText/CoreText.h>
+#elif TARGET_OS_MAC
+#import <ApplicationServices/ApplicationServices.h>
+#endif
#import "DTCoreTextLayoutFrame.h"
#import "DTCoreTextLayoutLine.h"
@@ -8,6 +8,8 @@
#if TARGET_OS_IPHONE
#import <CoreText/CoreText.h>
+#elif TARGET_OS_MAC
+#import <ApplicationServices/ApplicationServices.h>
#endif
@class DTHTMLElement;
@@ -6,7 +6,11 @@
// Copyright 2011 Drobnik.com. All rights reserved.
//
+#if TARGET_OS_IPHONE
#import <CoreText/CoreText.h>
+#elif TARGET_OS_MAC
+#import <ApplicationServices/ApplicationServices.h>
+#endif
#import "DTCoreTextConstants.h"
@@ -8,6 +8,8 @@
#if TARGET_OS_IPHONE
#import <CoreText/CoreText.h>
+#elif TARGET_OS_MAC
+#import <ApplicationServices/ApplicationServices.h>
#endif
void embeddedObjectDeallocCallback(void *context);

0 comments on commit 2c45232

Please sign in to comment.