• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help on subclassing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Help on subclassing
      • From: Will Mason <email@hidden>
References: 
 >Re: Help on subclassing (From: Will Mason <email@hidden>)

  • Prev by Date: Re: How to find a window under the cursor
  • Next by Date: can I bind images to NSButtonCells in a NSMatrix?
  • Previous by thread: Re: Help on subclassing
  • Next by thread: Re: Help on subclassing
  • Index(es):
    • Date
    • Thread