init function return value
init function return value
- Subject: init function return value
- From: "Chong Hiu Pun" <email@hidden>
- Date: Thu, 1 Aug 2002 17:45:36 +0800
By default, the init function is defined as follows:
-(id)init
So after I did my initialization, what value should I return? Or I can just
change (id) to (void) so that the warning:
"control reaches end of non-void function" can be eliminated?
thanks!
_______________________________________________
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.