<CLASS:
Cocoa bridge ยป Subclassing Objective C classes

Next:METHOD:


Vocabulary
cocoa.subclassing

Syntax
<CLASS: name < superclass protocols... imeth... ;CLASS>


Inputs and outputs
namea new class name
superclassa superclass name
protocolszero or more protocol names
imethinstance method definitions using METHOD:


Word description
Defines a new Objective C class. Instance methods are defined with the METHOD: parsing word.

This word is preferred to calling define-objc-class, because it creates a class word in the cocoa.classes vocabulary at parse time, allowing code to refer to the class word in the same source file where the class is defined.

See also
define-objc-class, METHOD:

Definition