cocoa - 'NSTextView' does not have a member named 'setString' -
i new cocoa,
i want replace content of nstextview.
i find function named setstring
of nstext, , nstextview inherits nstext.
so why error:
nstextview' not have member named 'setstring
thank you.
right now, have use nstextview.inserttext insert text.
the actual property string
. objective-c generates getter , setter (if not read only) methods can override behaviour. swift has method observers custom behaviour don't need custom getters/setters.
assign property directly:
let textview = nstextview() textview.string = "text"
Comments
Post a Comment