Re: NSString localizedStringWithFormat: and thousand separators

2011-01-24 Thread Graham Cox
On 25/01/2011, at 10:09 AM, Roland King wrote: >> That's because you have placed the format specifier inside quote marks. >> Remove them and try again. >> >> --Graham >> > > Don't think so - the apostrophy is exactly what he's trying to test, that's > supposed to be the extended printf forma

Re: NSString localizedStringWithFormat: and thousand separators

2011-01-24 Thread Roland King
On 25-Jan-2011, at 6:59 AM, Graham Cox wrote: > > On 25/01/2011, at 9:51 AM, Nala Gnirut wrote: > >> I'm getting the same results with >> >> NSString *test = [NSString localizedStringWithFormat:@"%'6.2f", >> 90.55]; >> NSLog(@"Test: %@", test); >> >> Output is: >> >> Test: '6.2f > >

Re: NSString localizedStringWithFormat: and thousand separators

2011-01-24 Thread Graham Cox
On 25/01/2011, at 9:51 AM, Nala Gnirut wrote: > I'm getting the same results with > >NSString *test = [NSString localizedStringWithFormat:@"%'6.2f", > 90.55]; >NSLog(@"Test: %@", test); > > Output is: > > Test: '6.2f That's because you have placed the format specifier inside quot

Re: NSString localizedStringWithFormat: and thousand separators

2011-01-24 Thread Nala Gnirut
I'm getting the same results with NSString *test = [NSString localizedStringWithFormat:@"%'6.2f", 90.55]; NSLog(@"Test: %@", test); Output is: Test: '6.2f On Fri, Jan 21, 2011 at 5:58 PM, David Duncan wrote: > On Jan 21, 2011, at 3:21 AM, Nala Gnirut wrote: > > > Hi all, > > accord

Re: NSString localizedStringWithFormat: and thousand separators

2011-01-21 Thread David Duncan
On Jan 21, 2011, at 3:21 AM, Nala Gnirut wrote: > Hi all, > according to Apple's documentation, localizedStringWithFormat supports > format specifiers as detailed in IEEE printf > specification > . > > Unfortunately, a simple t

NSString localizedStringWithFormat: and thousand separators

2011-01-21 Thread Nala Gnirut
Hi all, according to Apple's documentation, localizedStringWithFormat supports format specifiers as detailed in IEEE printf specification . Unfortunately, a simple test does not seem to work as expected when using ' to request f