• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do I get the compiler to warn me if I forget to return self?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How do I get the compiler to warn me if I forget to return self?
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Re: fftw... ?
  • Next by Date: Re: drag and drop between two tables
  • Previous by thread: Would Like To Isight with another cocoa programmer
  • Next by thread: Re: How do I get the compiler to warn me if I forget to return self?
  • Index(es):
    • Date
    • Thread