Changeset 14204
- Timestamp:
- Aug 21, 2010, 3:42:55 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/source/cocoa-ide/cocoa-editor.lisp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/cocoa-ide/cocoa-editor.lisp
r14160 r14204 282 282 (:metaclass ns:+ns-object)) 283 283 284 285 284 286 (defmethod hemlock-buffer ((self hemlock-buffer-string)) 285 287 (let ((cache (hemlock-buffer-string-cache self))) … … 307 309 workline-start-font-index ; current font index at start of workline 308 310 ) 311 312 (objc:defmethod (#/dealloc :void) ((self hemlock-buffer-string)) 313 (let* ((cache (hemlock-buffer-string-cache self)) 314 (buffer (if cache (buffer-cache-buffer cache)))) 315 (when buffer 316 (setf (buffer-cache-buffer cache) nil 317 (slot-value self 'cache) nil 318 (hi::buffer-document buffer) nil) 319 (when (eq buffer hi::*current-buffer*) 320 (setf hi::*current-buffer* nil)) 321 (hi::delete-buffer buffer))) 322 (objc:remove-lisp-slots self) 323 (call-next-method)) 309 324 310 325 (defmethod hemlock-buffer ((self buffer-cache)) … … 869 884 (let* ((hemlock-string (slot-value ts 'hemlock-string))) 870 885 (setf (slot-value ts 'hemlock-string) +null-ptr+) 871 872 886 (unless (%null-ptr-p hemlock-string) 873 (let* ((cache (hemlock-buffer-string-cache hemlock-string)) 874 (buffer (if cache (buffer-cache-buffer cache)))) 875 (when buffer 876 (setf (buffer-cache-buffer cache) nil 877 (slot-value hemlock-string 'cache) nil 878 (hi::buffer-document buffer) nil) 879 (when (eq buffer hi::*current-buffer*) 880 (setf hi::*current-buffer* nil)) 881 (hi::delete-buffer buffer)))))) 887 (#/release hemlock-string)))) 882 888 883 889 … … 2049 2055 (call-next-method edited)) 2050 2056 2057 (objc:defmethod (#/dealloc :void) ((self hemlock-frame)) 2058 (let* ((pane (slot-value self 'pane)) 2059 (echo-view (slot-value self 'echo-area-view))) 2060 (unless (%null-ptr-p pane) 2061 (setf (slot-value self 'pane) (%null-ptr)) 2062 (#/release pane)) 2063 (unless (%null-ptr-p echo-view) 2064 (setf (slot-value self 'echo-area-view) (%null-ptr)) 2065 (#/release echo-view)) 2066 (objc:remove-lisp-slots self) 2067 (call-next-method))) 2068 2051 2069 2052 2070 (objc:defmethod (#/miniaturize: :void) ((w hemlock-frame) sender) … … 2918 2936 (setf (slot-value self 'textstorage) (%null-ptr)) 2919 2937 (close-hemlock-textstorage textstorage))) 2938 (objc:remove-lisp-slots self) 2920 2939 (call-next-method)) 2921 2940
Note:
See TracChangeset
for help on using the changeset viewer.
