Re: Efficiency of loading Localizable.strings and NSUserDefaults

2009-07-16 Thread Jean-Daniel Dupas
Le 16 juil. 09 à 04:55, Graham Cox a écrit : On 16/07/2009, at 6:45 AM, Development wrote: Anyone has some comments or ideas about this? Possibly someone with some inner understanding of how localized strings are read? Optimise later. You are fretting about the speed of loading string

Re: Efficiency of loading Localizable.strings and NSUserDefaults

2009-07-15 Thread Graham Cox
On 16/07/2009, at 6:45 AM, Development wrote: Anyone has some comments or ideas about this? Possibly someone with some inner understanding of how localized strings are read? Optimise later. You are fretting about the speed of loading strings to the point where you are considering your

Re: Efficiency of loading Localizable.strings and NSUserDefaults

2009-07-15 Thread Douglas Davidson
On Jul 15, 2009, at 1:45 PM, Development wrote: Is this true? When I invoke -localizedStringForKey:value:table: (or the other variations of NSLocalizedString), is the entire Localizable.strings file read into memory? Is it thrown away at the end of the call? Or is the localized version of

Efficiency of loading Localizable.strings and NSUserDefaults

2009-07-15 Thread Development
This is not a "help, the code doesn't work" question, but more a general question to help one write better Cocoa code. Imagine my program requires a large amount of localizable strings. In many cases (ex. error codes), I have a string associated with an integer value. For some of these, I