Skip navigation.
 
mlRe: Virtual concept in Objective-C
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

Related mailsAuthorDate
mlVirtual concept in Objective-C Vinay Prabhu Jul 19, 08:32
mlRe: Virtual concept in Objective-C Shawn Erickson Jul 19, 08:40
mlRe: Virtual concept in Objective-C Dix Lorenz Jul 19, 08:43
mlRe: Virtual concept in Objective-C Finlay Dobbie Jul 19, 13:50
mlRe: Virtual concept in Objective-C Dix Lorenz Jul 19, 14:02
mlRE: Virtual concept in Objective-C Vinay Prabhu Jul 19, 14:04
mlRe: Virtual concept in Objective-C Scott Ribe Jul 19, 20:34
mlRe: Virtual concept in Objective-C Michael Watson Jul 19, 20:47
mlRe: Virtual concept in Objective-C Dirk Stegemann Jul 19, 21:39
mlRe: Virtual concept in Objective-C Chris Stewart Jul 19, 23:04