self = [super init], nil?
self = [super init], nil?
- Subject: self = [super init], nil?
- From: "Patrick M. Rutkowski" <email@hidden>
- Date: Fri, 7 May 2010 14:34:14 -0400
Will NSObject's init method ever really return nil?
E.g. if I sub-class NSObject, then is it worth checking for nil after
doing self = [super init]?
I know there are many classes in UIKit and Cocoa which most definitely
can return nil from their -init's, as an indication of failure. But
will this ever be the case with NSObject?
-Patrick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden