Xcode 5 Start to Finish relies mostly on narrative to take you on a tour of using Xcode for Cocoa development. I tried to cover as much as I could in the first three parts, and I mopped up the remaining big topics in the fourth. That leaves some small topics—tricks and traps—that didn’t fit anywhere else.
• If you’re used to Unix or Linux development, you’re accustomed to global macros like
DEBUG, and expect them to be set for you automatically.
If the argument to the standard C
assert() macro is zero, it halts the program. If
NDEBUG is set,
assert() does nothing, so you can publish code that may still exhibit the bug you put in the assertion for, but at least it won’t crash.
NS BLOCK ASSERTIONS macro ...