Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

l0uismustdie

macrumors regular
Original poster
Nov 30, 2009
109
1
Edinburgh, UK
Hello, I am trimming down my app and have been using the Allocations tool to try to track down where most of my memory is being allocated. What I have found are a serious number of allocations to [NSPlaceHolderString:] and [NSPlaceHolderNumber:]. I have gone even further and I believe these are coming from lines like the following:
Code:
[returnDict setObject:[memory objectForKey:[NSString stringWithFormat:@"%i",IP]] forKey:@"memory[ip]"];

More specifically I think the [NSString stringWithFormat:] is trouble. Am I correct in this belief and if so is there a better way to handle this type of call?

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.