Init Question
Init Question
- Subject: Init Question
- From: Jon Hull <email@hidden>
- Date: Sat, 25 Oct 2003 15:33:24 -0700
What is the proper behavior of an initialization method if it is passed
bad data?
It seems by example (NSArray's initWithContentsOfFile:) that I should
return nil which is fine, but how do I prevent a memory leak, since
alloc has already been called?
Thanks,
Jon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.