How to pass the equivalent of nil for an (NSError **)

Posted by Eddie Marks on Stack Overflow See other posts from Stack Overflow or by Eddie Marks
Published on 2010-03-23T18:15:57Z Indexed on 2010/03/23 18:23 UTC
Read the original article Hit count: 325

Filed under:
|

I have a method that takes an (NSError **) but I don't want to pass it one. When I pass it "nil" or "NULL" I end up with "EXC_BAD_ACCESS".

The offending line is "*error = nil;"

How do I pass it the equivalent of "nil" without crashing?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone