Handbook
Glossary
objc-class ( string -- class )
Vocabulary
cocoa
.
messages
Inputs
string
a
string
Outputs
class
an
alien
Word description
Outputs the Objective C class named by
string
. This class can then be used as the receiver in message sends calling class methods, for example:
NSMutableArray -> alloc
Errors
Throws an error if there is no class named by
string
.
Definition
USING:
cocoa.runtime
;
IN:
cocoa.messages
:
objc-class
( string -- class )
\
objc_getClass
(objc-class)
;