Because I can never find this when I need it, here is the location where XCode stores screenshots: ~/Library/Application Support/Developer/Shared/Xcode/Screenshots To take screenshots for the iPhone, iPad, or iPod Touch, go to Window –> Organizer and click on the device within Organizer. You’ll see a tab titled “screenshots.” You can also drag and drop the [...]
Monthly Archives: June 2010
Debugging an ad-hoc build
I don’t think you can debug an ad-hoc build of an iPhone app using XCode or Instruments. I thought it was possible, but after much failure I’ve decided I was fooling myself. But you can do the same build with your developer certificate and it will work fine, even with release settings of course. Wouldn’t [...]
NSLog and Performance
Just a note to those who are tempted to troubleshoot performance while in debug mode. All those NSLog statements (if you’re like me, you have hundreds of them for debugging/testing as you go) can have a definite, visible impact on performance. Try turning debug mode off and see if you still need to tweak anything. [...]
Speaking of leaks
… I’m happy to say I have another leak free app ready for the app store ;) Well, almost. It needs a beta test of course. I’ll post more about it later. It is small, free, and I hope mildly amusing.
3.5K thread leaks
I like the Leaks tool a lot. It can, however lose track of a data structure used to track a thread. There is a post here: https://devforums.apple.com/message/119423#119423 The case discussed is a 3.5KB leak originating from -[NSThread start] . I detected the same non-leak and am glad I searched online before spending too much time [...]
Data driven
The half-waking mind brings strange visions. I give you The Book of Data Exodus. Will the master bow before the servant? Are there riches in the promised land? And most pressingly: should manna be served with, or without, a garnish of fresh vegetables?
Battle of the String
This is a post about NSBundle’s pathForResource. My code pseudo-randomly selects between 3 “banners,” which are HTML files inside my project. There are some battles worth fighting, I have found, and some not. Maybe on a rainy day I will figure out why this works: int whichBanner = (arc4random() %3) + 1; // random 1 [...]