1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Breaking Conditionally

Discussion in 'iPhone/iPad Programming' started by teguh123, May 10, 2011.

  1. macrumors member

    #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?
     
  2. chown33, May 10, 2011
    Last edited: May 10, 2011

    macrumors 603

    #2
  3. macrumors 68030

    PhoneyDeveloper

    #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.
     

Share This Page