FROM : Scott Ribe
DATE : Wed Jul 19 20:34:26 2006
> So what is the best practice here?
Well, that's a matter of style. Argument 1: all methods implemented should
be declared in the header, so that by looking at the header one can tell
what methods a class implements--in theory I agree. Argument 2:
commonly-overridden methods (think dealloc for instance) just clutter up the
header without providing any real info.
I tend to try to declare everything, but put the common "overhead" kind of
stuff grouped together out of the way, after the more "interesting" stuff.
--
Scott Ribe
<email_removed>
http://www.killerbytes.com/
(303) 722-0567 voice
DATE : Wed Jul 19 20:34:26 2006
> So what is the best practice here?
Well, that's a matter of style. Argument 1: all methods implemented should
be declared in the header, so that by looking at the header one can tell
what methods a class implements--in theory I agree. Argument 2:
commonly-overridden methods (think dealloc for instance) just clutter up the
header without providing any real info.
I tend to try to declare everything, but put the common "overhead" kind of
stuff grouped together out of the way, after the more "interesting" stuff.
--
Scott Ribe
<email_removed>
http://www.killerbytes.com/
(303) 722-0567 voice
| Related mails | Author | Date |
|---|---|---|
| Vinay Prabhu | Jul 19, 08:32 | |
| Shawn Erickson | Jul 19, 08:40 | |
| Dix Lorenz | Jul 19, 08:43 | |
| Finlay Dobbie | Jul 19, 13:50 | |
| Dix Lorenz | Jul 19, 14:02 | |
| Vinay Prabhu | Jul 19, 14:04 | |
| Scott Ribe | Jul 19, 20:34 | |
| Michael Watson | Jul 19, 20:47 | |
| Dirk Stegemann | Jul 19, 21:39 | |
| Chris Stewart | Jul 19, 23:04 |






Cocoa mail archive

