[Adium-devl] [Adium-svn] rev 23077 - trunk/Source
Peter Hosey
boredzo at adiumx.com
Sun Apr 6 03:59:03 UTC 2008
On Apr 05, 2008, at 19:48:04, evands at adiumx.com wrote:
> + preferredLanguage = [[[NSUserDefaults standardUserDefaults]
> objectForKey:@"AppleLanguages"] objectAtIndex:0];
Wouldn't it make more sense to keep the entire array, and try each
language in turn? The system may not have a spelling-checker
dictionary for the user's #1 language.
> + [[NSSpellChecker sharedSpellChecker] setLanguage:newChatLanguage];
Statements like this should be conditional (-setLanguage:,
uncharacteristically for a setter, returns BOOL). Taking care of the
above would take care of this, too.
More information about the devel
mailing list