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
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
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
: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
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
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
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
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