MacRuby progress, questions
I've been able to create a (very) simple MacRuby app, but I'm stalled on some Cocoa questions. Basically, I'm looking for a Cocoa object (or some combination of objects) to implement a variation on a Terminal, as follows: I want two columns of text, controlled by a common vertical scrollbar. The right-hand column should act like a Terminal window. That is, new text (whether entered, pasted, or generated by running an external command) should show up at the "end" of the screen. Text can be copied from any region of this column. The left-hand column will contain sequence numbers for entries in the right-hand column. These will be generated by my code (when it thinks it has received a user "command") and won't be copiable or editable. I could use a Table View (with non-editable columns) to display the text, but I'm not sure how to get at the keyboard (or paste) input). What approaches/objects should I be looking at? -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm@cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development
I could use a Table View (with non-editable columns) to display the text, but I'm not sure how to get at the keyboard (or paste) input). What approaches/objects should I be looking at?
Any NSResponder subclass will do; you probably want either a custom NSView or just a hacked up NSTextView that watches newly inserted text and sends it over to the pty. -Ben
participants (2)
-
Benjamin Stiglitz
-
Rich Morin