Joy Online Manual

NAME
objc:unteach - Remove skills

SYNOPSIS

objc:unteach objectList ?skillList?

DESCRIPTION
Removes the skills in skillList from all objects or classes in the objectList. Previous implementations of a selector that were overridden will then reappear. skillList is a list containing selectors, optionally preceded by + or - (default is -). If no skillList is specified, all Joy skills will be untaught.

Only the Joy interpreter that defined the skill can remove it.

EXAMPLE

tcl> objc:teach NSObject {
- STR test {
return test0
}
}
tcl> set w [[NSWindow alloc] init]
NSWindow@0x12e7f4
tcl> objc:teach $w {
- STR test {
return test1
}
}
tcl> $w test
test1
tcl> objc:teach $w {
- STR test {
return test2
}
}
tcl> $w test
test2
tcl> objc:unteach $w test
tcl> $w test
test1
tcl> objc:unteach $w test
tcl> $w test
test0

SEE ALSO

objc:info
objc:teach

KEYWORDS
class, inheritance, method, skill

Index