Changeset 12786
- Timestamp:
- Sep 8, 2009, 9:54:52 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/source/cocoa-ide/cocoa-editor.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/cocoa-ide/cocoa-editor.lisp
r12758 r12786 2049 2049 (when (and pane (not (%null-ptr-p pane))) 2050 2050 (report-condition-in-hemlock-frame condition (#/window pane))))) 2051 2052 (objc:defmethod (#/close :void) ((self hemlock-frame))2053 (let* ((content-view (#/contentView self))2054 (subviews (#/subviews content-view)))2055 (do* ((i (1- (#/count subviews)) (1- i)))2056 ((< i 0))2057 (#/removeFromSuperviewWithoutNeedingDisplay (#/objectAtIndex: subviews i))))2058 (let* ((buf (hemlock-frame-echo-area-buffer self))2059 (echo-doc (if buf (hi::buffer-document buf))))2060 (when echo-doc2061 (setf (hemlock-frame-echo-area-buffer self) nil)2062 (#/close echo-doc)))2063 (release-canonical-nsobject self)2064 (#/setFrameAutosaveName: self #@"")2065 (call-next-method))2066 2051 2067 2052 (defun window-menubar-height () … … 2396 2381 (ns:ns-rect-y r) (ns:ns-rect-y default-frame))) 2397 2382 r)) 2383 2384 (objc:defmethod (#/windowWillClose: :void) ((wc hemlock-editor-window-controller) 2385 notification) 2386 (declare (ignore notification)) 2387 ;; The echo area "document" should probably be a slot in the document 2388 ;; object, and released when the document object is. 2389 (let* ((w (#/window wc)) 2390 (buf (hemlock-frame-echo-area-buffer w)) 2391 (echo-doc (if buf (hi::buffer-document buf)))) 2392 (when echo-doc 2393 (setf (hemlock-frame-echo-area-buffer w) nil) 2394 (#/close echo-doc)) 2395 (#/setFrameAutosaveName: w #@"") 2396 (#/autorelease w))) 2398 2397 2399 2398 (defmethod hemlock-view ((self hemlock-editor-window-controller))
Note:
See TracChangeset
for help on using the changeset viewer.
