An Objective-C Wrapper for Private Dictionary Services on Mac OS X
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DictionaryKit.xcworkspace
DictionaryKit Fixing method signature of DCSRecordCopyData, changing int to long Oct 15, 2014
Example Update dictionary name in example May 6, 2014
LICENSE Initial Commit Mar 9, 2014
README.md

README.md

DictionaryKit

An Objective-C Wrapper for Private Dictionary Services on Mac OS X

This library accesses private OS X APIs, making it unsuitable for apps submitted to the App Store.

Usage

#import "DictionaryKit.h"

TTTDictionary *dictionary = [TTTDictionary dictionaryNamed:DCSOxfordEnglishDictionary];
NSLog(@"%@\n", dictionary.name);

NSString *term = @"apple";
for (TTTDictionaryEntry *entry in [dictionary entriesForSearchTerm:term]) {
    NSLog(@"%@", entry.text);
}

Available Dictionaries

NSString * const DCSAppleDictionaryName = @"Apple Dictionary";
NSString * const DCSDutchDictionaryName = @"Prisma woordenboek Nederlands";
NSString * const DCSFrenchDictionaryName = @"Multidictionnaire de la langue française";
NSString * const DCSGermanDictionaryName = @"Duden-Wissensnetz deutsche Sprache";
NSString * const DCSItalianDictionaryName = @"Dizionario italiano da un affiliato di Oxford University Press";
NSString * const DCSJapaneseSupaDaijirinDictionaryName = @"スーパー大辞林";
NSString * const DCSJapanese_EnglishDictionaryName = @"ウィズダム英和辞典 / ウィズダム和英辞典";
NSString * const DCSKoreanDictionaryName = @"New Ace Korean Language Dictionary";
NSString * const DCSKorean_EnglishDictionaryName = @"New Ace English-Korean Dictionary and New Ace Korean-English Dictionary";
NSString * const DCSNewOxfordAmericanDictionaryName = @"New Oxford American Dictionary";
NSString * const DCSOxfordAmericanWritersThesaurus = @"Oxford American Writer's Thesaurus";
NSString * const DCSOxfordDictionaryOfEnglish = @"Oxford Dictionary of English";
NSString * const DCSOxfordThesaurusOfEnglish = @"Oxford Thesaurus of English";
NSString * const DCSSimplifiedChineseDictionaryName = @"现代汉语规范词典";
NSString * const DCSSimplifiedChinese_EnglishDictionaryName = @"Oxford Chinese Dictionary";
NSString * const DCSSpanishDictionaryName = @"Diccionario General de la Lengua Española Vox";
NSString * const DCSWikipediaDictionaryName = @"Wikipedia";

Contact

Mattt Thompson @mattt

License

DictionaryKit is available under the MIT license. See the LICENSE file for more info.