Changeset 12697


Ignore:
Timestamp:
Aug 27, 2009, 1:08:08 AM (10 years ago)
Author:
palter
Message:

Implement a legacy method used by Cocotron in NSDocument's NSSavePanel support.
With this change, the save panel seems to work now as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/cocoa-ide/cocoa-editor.lisp

    r12695 r12697  
    27532753        t))))
    27542754
    2755 
     2755;;; Cocotron's NSDocument uses the deprecated as of 10.4 methods to implement the NSSavePanel
     2756#+cocotron
     2757(objc:defmethod (#/writeToFile:ofType: :<BOOL>)
     2758    ((self hemlock-editor-document) path type)
     2759  (rlet ((perror :id +null-ptr+))
     2760    (#/writeToURL:ofType:error: (#/fileURLWithPath: ns:ns-url path) self type perror)))
    27562761
    27572762
Note: See TracChangeset for help on using the changeset viewer.