Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Blakeasd

macrumors 6502a
Original poster
Dec 29, 2009
643
0
Is it possible to add all of the terms (not the definitions, just the name of the work) from the built-in OS X Dictionary into an NSMutableDictionary?
 

gnasher729

Suspended
Nov 25, 2005
17,980
5,565
Is it possible to add all of the terms (not the definitions, just the name of the work) from the built-in OS X Dictionary into an NSMutableDictionary?

I wish you lots of luck doing this, but there seems to be no useful documentation about it at all. If you figure it out, I would be very grateful if you posted here how to do it.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Dictionaries are in /Library/Dictionaries/

Each Dictionary is a bundle (with a .dictionary extension). Within each dictionary bundle in the resources is a (localised) xml file called <DictionaryName>.xml. You can parse the xml (the format looks quite simple) to get all the keys (and definitions if you want).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.