Method parameter that can take an object or a nil?

Posted by Dan Ray on Stack Overflow See other posts from Stack Overflow or by Dan Ray
Published on 2010-05-24T20:19:13Z Indexed on 2010/05/24 20:21 UTC
Read the original article Hit count: 198

Filed under:

How do I spell a method whose argument can either be an object of a certain type, or nil? You see those all the time in framework classes, but I've just encountered my first instance where it would be useful to create one.

© Stack Overflow or respective owner

Related posts about objective-c