Re: Virtual concept in Objective-C
Re: Virtual concept in Objective-C
- Subject: Re: Virtual concept in Objective-C
- From: Scott Ribe <email@hidden>
- Date: Wed, 19 Jul 2006 12:34:26 -0600
- Thread-topic: Virtual concept in Objective-C
> 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@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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