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 |
joy> objc:teach NSObject {
- STR test {
return test0
}
}
joy> set w [[NSWindow alloc] init]
NSWindow@0x12e7f4
joy> objc:teach $w {
- STR test {
return test1
}
}
joy> $w test
test1
joy> objc:teach $w {
- STR test {
return test2
}
}
joy> $w test
test2
joy> objc:unteach $w test
joy> $w test
test1
joy> objc:unteach $w test
joy> $w test
test0
| SEE ALSO |
| KEYWORDS |
| class, inheritance, method, skill |
| Index |