[MacRuby-devel] Is this the right list?

Timothy McDowell tmcdowell at gmail.com
Mon Jan 12 14:57:50 PST 2009


On Mon, Jan 12, 2009 at 3:15 PM, Matt Aimonetti <mattaimonetti at gmail.com>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
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 does work.
Is there a way to prevent user-editing but to allow my code to edit it?

-- Thanks,
--Zonbi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090112/e342c274/attachment.html>


More information about the MacRuby-devel mailing list