[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] SCTestView editable_ (from SF Bugs)



Hi Fredrik,

i think the code below works as expected. If the textView is not editable you cannot set a string. So i don't consider this to be a bug. (It's a feature ;-} ). It's like a closet, you can't put something in, when it is locked.

GUI.cocoa
(
w= GUI.window.new;
GUI.textView.new(w, Rect(10, 10, 100, 20))
.editable_(false)
.string_("asdf"); //not displayed
w.front;
)

best,
Jan