Changeset 856


Ignore:
Timestamp:
Aug 2, 2004, 9:56:44 PM (20 years ago)
Author:
Gary Byers
Message:

Remove subviews from hemlock-frame (window) before closing it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/examples/cocoa-editor.lisp

    r855 r856  
    11751175  (:metaclass ns:+ns-object))
    11761176
     1177
    11771178(defun double-%-in (string)
    11781179  ;; Replace any % characters in string with %%, to keep them from
     
    12811282
    12821283(define-objc-method ((:void close) hemlock-frame)
     1284  (let* ((content-view (send self 'content-view))
     1285         (subviews (send content-view 'subviews)))
     1286    (do* ((i (1- (send subviews 'count)) (1- i)))
     1287         ((< i 0))
     1288      (send (send subviews :object-at-index i)
     1289            'remove-from-superview-without-needing-display)))
    12831290  (let* ((proc (slot-value self 'command-thread)))
    12841291    (when proc
Note: See TracChangeset for help on using the changeset viewer.