Q:

Better way to convert int to string in iOS

I am wondering if there is a better way to convert int to string
Basically I have a counter and a dictionary
//
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
int cnt = 0;
//
// insert an object
//
id object = [[[SomeObject alloc] init] autorelease];
NSString *key = [NSString stringWithFormat:@"%d", cnt++];
[dict setObject:object forKey:key];

The thing is converting int to string takes more time than I expected.
So is there a better way to get around this?

A:

I suppose this is mildly faster:
NSString* yourString = [@(yourInteger) stringValue];  

And this
[dict setObject:yourObj forKey:[@(yourInt) stringValue]];

Does look better than:
[dict setObject:yourObj forKey:[NSString stringWithFormat:@"%d",yourInt]];

But we're really splitting hairs here from both speed and style points of view.

