It’s been a while since I was deep into CoreData, but here I am again. And this time, I’m writing proper unit tests. Things were going pretty well – I had about 50 test cases with a few related asserts in each – until I started messing with saving, and fetching tests. I ran into some …
Tag Archives: objective-c
Quiet NSLog() in Release Builds
On the heels of the previous post, here’s a little snippit I picked up from Marek Bell to quiet NSLog() output in release builds. Add this to your {MyApp}-prefix.pch file #ifndef __OPTIMIZE__ # define NSLog(…) NSLog(__VA_ARGS__) #else # define NSLog(…) {} #endif The reasoning behind using __OPTIMIZE__ is that it’s set only on release builds …