setReadOnly

Changes the read-only mode of this file.

Syntax
aSourceFile setReadOnly (ro)
Parameters
ro - Boolean
true to make the file read-only.
Remarks
This method is intended to use with buffers not saved on disk yet (no filename). Changing the read-only mode of a saved file will be updated according to the read-only mode of the file on disk.