init returns nil or raises exception?
init returns nil or raises exception?
- Subject: init returns nil or raises exception?
- From: Remco Poelstra <email@hidden>
- Date: Thu, 7 Oct 2010 09:47:43 +0200
Hi,
While still in the process of cleaning up my code, I read in the documentation of NSObject that -init should return nil if it fails to initialize. But a paragraph lower it's stated that -init should always return a functional instance or raise an exception. Isn't that in conflict with the allowance of returning nil?
Thanks in advance.
Regards,
Remco Poelstra_______________________________________________
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