Created
January 7, 2011 05:49
-
-
Save bdotdub/769161 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <CoreServices/CoreServices.h> | |
// adjective | |
// 1 imaginative or fanciful; remote from reality | |
// 2 extraordinarily good or attractive | |
// DERIVATIVES | |
// fantastical adjective (in sense 1) . | |
// fantasticality noun (in sense 1) . | |
// fantastically adverb | |
@interface DictionaryEntry : NSObject { | |
} | |
@end | |
@implementation DictionaryEntry | |
@end | |
int main() { | |
NSString *word = @"fantastic"; | |
CFRange range = DCSGetTermRangeInString(NULL, (CFStringRef)word, 0); | |
NSString *definition = (NSString*)DCSCopyTextDefinition(NULL, (CFStringRef)word, range); | |
NSLog(@"Testing : %@", definition); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment