[MacRuby-devel] Is this the right list?

2009-01-12 Thread Timothy McDowell
Excuse me, but is this the correct list to ask questions about MacRuby programming? -- --Zonbi. ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] Is this the right list?

2009-01-12 Thread Matt Aimonetti
I believe it is. How can we help you? - Matt On Mon, Jan 12, 2009 at 1:44 PM, Timothy McDowell wrote: > Excuse me, but is this the correct list to ask questions about MacRuby > programming? > > -- > --Zonbi. > > ___ > MacRuby-devel mailing list > MacRu

Re: [MacRuby-devel] Is this the right list?

2009-01-12 Thread Timothy McDowell
On Mon, Jan 12, 2009 at 3:15 PM, Matt Aimonetti wrote: > I believe it is. How can we help you? Thanks, and here is my dillema: I have a bit of code that is something like this class MyController attr_writer(:button, :textview) def clicked(sender) @textview.insertText("Button clicked!\n") end

Re: [MacRuby-devel] Is this the right list?

2009-01-12 Thread Vincent Isambart
:textview is linked to an NSTextView object via InterfaceBuilder. Now the purpose of this view is to work as the display for text coming from a MUD (Multi-user domain/dungeon). I have it set to noneditable but selectable. My above code doesn't work. I allow it to be editable, and the code

Re: [MacRuby-devel] Is this the right list?

2009-01-12 Thread Timothy McDowell
Haha, I scoured that documentation for an hour! Thanks a bunch. ^_^ On Mon, Jan 12, 2009 at 4:16 PM, Vincent Isambart < [email protected]> wrote: > > :textview is linked to an NSTextView object via InterfaceBuilder. Now the >> purpose of this view is to work as the display for text comi

Re: [MacRuby-devel] Is this the right list?

2009-01-12 Thread Timothy McDowell
Y'know what, that doesn't seem to work actually. No '<<' method, and setCharacters/setWords works, but nothing shows up. On Mon, Jan 12, 2009 at 4:34 PM, Timothy McDowell wrote: > Haha, I scoured that documentation for an hour! Thanks a bunch. ^_^ > > > On Mon, Jan 12, 2009 at 4:16 PM, Vincent Is

Re: [MacRuby-devel] Is this the right list?

2009-01-12 Thread Eloy Duran
How about @text_view.setString("foo") or as @text_view.string = "foo" ? http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSText_Class/Reference/Reference.html#/ /apple_ref/doc/uid/2367-setString_ - Eloy On 13 jan 2009, at 00:46, Timothy McDowell wrote: Y'kn

Re: [MacRuby-devel] Is this the right list?

2009-01-12 Thread John Shea
textView seems rather tedious compared to textField to me. Here is what I do (which does work when the view is made not editable): class Controller attr_writer :text_view #linked to the IB textView on your window def awakeFromNib replace_all_range = NSRange.new