NSString's formatting with %@ conversion specifier and field width

Originator:nikolai.ruhe
Number:rdar://7788141 Date Originated:24-Mar-2010
Status:Open Resolved:
Product:Mac OS X Product Version:10.6.2
Classification: Reproducible:Always
 
Summary: 
My understanding of printf-like format strings is that you can prefix any conversion specifier with a minimum field width. This does not seem to work for Cocoa's %@ specifier.

Steps to Reproduce:
NSLog(@"'%5@'", @"foo");
NSLog(@"'%5s'", [@"foo" UTF8String]);

Expected Results:
… '  foo'
… '  foo'

Actual Results:
… 'foo'
… '  foo'

Regression:
I tested only on Snow Leopard.

Notes:
-

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!