cocoa.subclassing vocabulary
Factor handbook ยป Vocabulary index


Documentation
Subclassing Objective C classes

Metadata
Parents:cocoa
Authors:Slava Pestov
Platforms:macos


Words

Tuple classes
ClassSuperclassSlots
cocoa-protocol tuplename


Parsing words
WordSyntax
<CLASS:<CLASS: name < superclass protocols... imeth... ;CLASS>
COCOA-PROTOCOL:
METHOD:METHOD: return foo: type1 arg1 bar: type2 arg2 baz: ... [ body ] ;


Symbol words
;CLASS>


Ordinary words
WordStack effect
(define-objc-class)( methods protocols superclass name -- )
(parse-selector)( -- )
(redefine-objc-method)( class method -- )
<cocoa-protocol>( name -- cocoa-protocol )
add-method( class sel imp types -- )
add-methods( methods class -- )
add-protocol( class protocol -- )
add-protocols( protocols class -- )
define-objc-class( name superclass protocols methods -- )
encode-type( type -- encoded )
encode-types( return types -- encoding )
init-method( method -- sel imp types )
parse-method-body( names -- quot )
parse-selector( -- selector types names )
prepare-method( ret types quot -- type imp )
prepare-methods( methods -- methods )
redefine-objc-methods( methods name -- )
throw-if-false( obj what -- )


Class predicate words
WordStack effect
cocoa-protocol?( object -- ? )


Files


Metadata files