NuConsoleViewController
A controller for a text view containing a Nu console.
Superclass: NSObject
Declared in: nu/console.nu
This class is part of the Nu console implementation.
It controls a Cocoa text view containing an interactive Nu console.
Methods
Get the number of lines to output between handling application events.
in nu/console.nu
| - |
(id) |
initWithFrame: |
(NSRect) frame |
Initialize a controller with a specified frame.
in nu/console.nu
Get the length of the text view containing the console.
in nu/console.nu
| - |
(void) |
moveAndScrollToIndex: |
(id) index |
Move the console display to a specified point.
in nu/console.nu
| - |
(void) |
moveToEndOfInput |
Move the console display and cursor to the end of the input area.
in nu/console.nu
| - |
(void) |
moveToStartOfInput |
Move the console display and cursor to the beginning of the input area.
in nu/console.nu
| - |
(void) |
replaceLineWithNext |
Replace the current line of input with a line from the input history.
in nu/console.nu
| - |
(void) |
replaceLineWithPrevious |
Replace the current line of input with a line from the input history.
in nu/console.nu
| - |
(void) |
setChunk: |
(id) chunk |
Set the number of lines to output between handling application events.
Setting this higher causes output to display faster, but more erratically.
in nu/console.nu
| - |
(int) |
textView: |
(id) textview |
|
doCommandBySelector: |
(SEL) selector |
Delegate method to perform actions.
in nu/console.nu
| - |
(BOOL) |
textView: |
(id) textview |
|
shouldChangeTextInRange: |
(NSRange) range |
|
replacementString: |
(id) replacement |
Delegate methods to handle text changes.
in nu/console.nu
| - |
(NSRange) |
textView: |
(id) textview |
|
willChangeSelectionFromCharacterRange: |
(NSRange) oldRange |
|
toCharacterRange: |
(NSRange) newRange |
in the general case, the caller should insert replacement text
Delegate method to approve text changes.
in nu/console.nu
| - |
(void) |
write: |
(id) string |
Write text to the console.
in nu/console.nu