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

teguh123

macrumors member
Original poster
Mar 22, 2011
62
0
A variable shouldn't be nil. Say it's nil. How do I break the program when it's nil?

Debug assert? Objective c?
 
I don't believe that the issue mentioned in the "NSAssert considered harmful" blog post applies on iOS. It does, kind of, on MacOS X.

I use NSAssert in both Mac and iOS code and it works as expected. I believe this is what OP should use.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.