I have a condition that should actually never happen, but if this does happen how does one deal with this in Objective-C?
In the java domain I would through a Runtime exception, which stops the program from executing. (I would still get a detailed stack trace and be able to determine the cause when debugging).
Objective-C does have exceptions, but from what I gather this is not the norm to use, one should rather use NSError in general.
Should one still use NSError for such cases or is there some other magic I can perform such as exit(1)?
I need something that is valid and will fly by Apple; What is the best ways to deal with this scenario?