How do I get the compiler to warn me if I forget to return self?
How do I get the compiler to warn me if I forget to return self?
- Subject: How do I get the compiler to warn me if I forget to return self?
- From: Issac Trotts <email@hidden>
- Date: Fri, 29 Oct 2004 17:56:49 -0700
It should be an error, but I don't even get a warning when I forget to
return self in an initializer. For example:
- (id)init
{
[super init];
/* Initialize member variables. */
/* Oops, I forgot to return self! */
}
How can I get a warning or an error for this without getting lots of
warnings for other things?
Thanks,
Issac
-----
Issac Trotts
Programmer, NIMH Human Brain Project
University of California, Davis
http://mallorn.ucdavis.edu/conexus
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden