Home › Forums › OpenEars plugins › [Resolved] Language mode generator + rejecto not working › Reply To: [Resolved] Language mode generator + rejecto not working
December 11, 2014 at 3:27 pm
#1023410
Halle Winkler
Politepix
This isn’t how the paths are referenced in 2.0:
dynamicLanguageGenerationResultsDictionary = [error userInfo]; NSString *lmFile = [dynamicLanguageGenerationResultsDictionary objectForKey:@"LMFile"]; NSString *dictionaryFile = [dynamicLanguageGenerationResultsDictionary objectForKey:@"DictionaryFile"]; NSString *lmPath = [dynamicLanguageGenerationResultsDictionary objectForKey:@"LMPath"]; NSString *dictionaryPath = [dynamicLanguageGenerationResultsDictionary objectForKey:@"DictionaryPath"];
To see how this works now, take a look at the upgrade guide under the section “Step 5: architectural changes.”:
https://www.politepix.com/upgradeguide
If you’ve been using 1.x, even if you’re making a new app, it’s a good idea to read the upgrade guide and the headers for the classes you’re using (or their docs) to find out about API changes. The sample app and tutorial are up to date with 2.0, so it’s fine to copy and paste code out of them.