April 2010
2 posts
great setup and extension tips for mercurial →
Apr 20th
2 notes
NSString stringWithFormat: - indexed arguments!
A IMHO quite underused feature of the format string is indexed parameter referencing. Something that can’t be found easily in the documentation sadly, but is quite crucial for good localization and can be also be used if you want to use an argument more than once:  NSString *formatString = @"Page %1$d of %2$d"; [NSString stringWithFormat:formatString,5,120]; // results in @"Page 5 of 120"  ...
Apr 3rd
1 note