Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 15, 2011, 10:58 PM   #1
Blakeasd
macrumors 6502a
 
Join Date: Dec 2009
Adding to NSMutable Dictionary

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?
Blakeasd is offline   0 Reply With Quote
Old Apr 16, 2011, 02:36 AM   #2
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by Blakeasd View Post
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.
gnasher729 is offline   0 Reply With Quote
Old Apr 16, 2011, 02:46 AM   #3
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
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).
robbieduncan is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Adding a dictionary to Dictionary app Sarsay Mac Applications and Mac App Store 2 Oct 23, 2012 03:18 PM
Adding more language packs to the dictionary Halloween Mac Applications and Mac App Store 2 Sep 19, 2008 03:33 AM
Added words to Custom Dictionary, any way to have Capitalization ignored? kman79 Mac Applications and Mac App Store 0 Sep 18, 2008 09:34 PM
Adding words to the dictionary? yg17 iPhone 7 Aug 3, 2008 11:27 PM
'Wedgie' added to Webster's dictionary craigdawg Current Events 9 Mar 15, 2005 08:12 AM


All times are GMT -5. The time now is 05:29 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC