Re: Abstract base classes in Objective C
Re: Abstract base classes in Objective C
- Subject: Re: Abstract base classes in Objective C
- From: Timothy Knox <email@hidden>
- Date: Thu, 14 Apr 2005 00:47:53 -0700
- Mail-followup-to: Cocoa Users <email@hidden>
Somewhere on Shadow Earth, at Thu, Apr 14, 2005 at 05:24:39PM +1000, Andrew White wrote:
>
> Kevin Ballard wrote:
>
> >>Any suggestions? Are protocols what I'm looking for?
Well, I am NOT an Objective-C/Cocoa expert by ANY stretch (still
learning Cocoa myself). However, I know that in Smalltalk, which
HEAVILY influenced Obj-C, there was a "doesNotUnderstand" method
that could be used to indicate that a particular method wasn't
implemented. So assuming Obj-C/Cocoa has the same thing, you could
have your method implementations call doesNotUnderstand. Far from
an ideal solution, but it lets you use a class rather than a
protocol.
And of course, I may be so completely wrong as to be ridiculous,
in which case, kindly ignore everything I just said. As I said, I
am NOT a Cocoa expert, but do have a smattering of Smalltalk
knowledge.
--
Timothy Knox <mailto:email@hidden>
The one thing I've learned about freedom of expression is that you really
ought to keep that sort of thing to yourself.
-- Scott Adams, _I'm Not Anti-Business, I'm Anti-Idiot_
_______________________________________________
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