Joy Online Manual

NAME
objc:newProtocol - Add a new protocol to the run-time

SYNOPSIS

objc:newProtocol name ?-protocols protocols? ?skills?

DESCRIPTION
Declares a new protocol with the given name that adopts the given list of protocols and implements the given skills (only prototypes, no bodies!).

EXAMPLE

joy> objc:newProtocol MyProtocol -protocols NSCoding {
# MyProtocol adopts the NSCoding protocol,
# and requires the following additional methods:
- int method1: {int x}
+ int method2: {float y}
}

SEE ALSO

objc:info
objc:protocol
objc:teach

KEYWORDS
method, protocol, skill

Index