||Thread Tools||Search this Thread||Display Modes|
|May 10, 2011, 12:48 PM||#1|
A variable shouldn't be nil. Say it's nil. How do I break the program when it's nil?
Debug assert? Objective c?
How to Learn Math
|May 10, 2011, 01:00 PM||#2|
C assertions should work.
Also look up NSAssert.
FWIW, google search terms: ios assert site:developer.apple.com
And see this:
Last edited by chown33; May 10, 2011 at 01:07 PM.
|May 10, 2011, 01:22 PM||#3|
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.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Breaking point||cube||Mac Peripherals||1||Mar 23, 2014 04:16 PM|
|MagSafe Keeps Breaking||sober2ndthought||MacBook Pro||31||Jan 5, 2014 08:14 AM|
|Jail Breaking||EarthMLG||Jailbreaks and iOS Hacks||21||Feb 8, 2013 06:09 AM|
|Base model iPhone + base model iPad mini = conditionally, very smart||cperry2||iPad||0||Oct 25, 2012 06:33 PM|
All times are GMT -5. The time now is 08:08 PM.