Prototype for DocumentFrame objects
You cannot create a DocumentFrame. You can add a view to a document, it creates a DocumentFrame for you:
You can obtain the frame which has the focus in the application this way:
var frame = current_frame;
DocumentFrame object are views on document. They contain a Coordinator object which is the key for the visual part of the differentiation process.
Giving the focus to a given frame.