if (x) [x method]
kornelski opened this issue · comments
You never need to check if object != nil
when calling methods on it. Objective-C always checks for nil
on every call and guarantees that such calls are safe.
You can replace every:
if (documentObject)
[documentObject release];
with
[documentObject release];
Thanks, done.