![[index]](../icons/index.gif)
Next: handler:find-format-handler
Up: Handler Utilities
Previous: Handler Utilities
This function creates a frame to edit a file.
- (handler:edit-file filename make-default) -> (implements frame:editor<%>)
filename : (union string #f)
make-default = (lambda () (make-object frame:text-info-file% filename)) : (-> (implements frame:editor<%>))
- If filename is a string, this function checks the result of
group:get-the-frame-group to see if the filename is already open by a frame in the
group.
- If so, it returns the frame.
- If not, this function calls
handler:find-format-handler with filename.
-
If a handler is found, it is applied to
filename and it's result is the final result.
-
If not, make-default is used.
-
If filename is #f, make-default is used.
PLT