Return to Snippet

Revision: 62197
at February 7, 2013 05:15 by ibob


Initial Code
# Setup a scroll view containing a text view

@scroll_view = scroll_view(:frame => [0,0,495,300], :layout => {:expand => [:height, :width]})
@text_view = text_view(:frame => [0,0,490,300])
@scroll_view.documentView = @text_view

#Load into the window with: win << @scroll_view 

#To read/write text under the text_view, you can refer to it as @text_view.string = " Text"

Initial URL


Initial Description


Initial Title
Setup a Scroll View With TextView (Multiline Text in Cocoa)

Initial Tags


Initial Language
Ruby