Re: Help on subclassing
Re: Help on subclassing
- Subject: Re: Help on subclassing
- From: Prachi Gauriar <email@hidden>
- Date: Thu, 1 Dec 2005 18:13:06 -0500
On Dec 1, 2005, at 2:16 PM, Will Mason wrote:
What one typically does in this situation, since Objective-C does
not support "pure virtual" methods, is to declare someMethod in
class A and define it like this:
- (void) someMethod
{
[self subclassResponsibility: _cmd];
}
-subclassResponsibility: doesn't exist in Mac OS X (it's in Smalltalk
though). I think it might have been in NeXTStep, but I'm not sure. -
doesNotRecognizeSelector: is the closest thing to it at this point.
-Prachi
_______________________________________________
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