Messages sent to null in Objective-C

Sending messages to a null object is safe in Objective-C; nice to know as I currently nearly always test for null before calling messages on objects. Could save complex testing for nested calls.

Leave a Reply

Your email address will not be published. Required fields are marked *