Changeset 855


Ignore:
Timestamp:
Aug 1, 2004, 5:54:34 PM (20 years ago)
Author:
Gary Byers
Message:

INIT-WITH-TEXT-STORAGE -> SET-TEXT-STORAGE (was initing twice.)

File:
1 edited

Legend:

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

    r815 r855  
    16591659
    16601660
    1661 (define-objc-method ((:id :init-with-text-storage ts)
     1661(define-objc-method ((:id :set-text-storage ts)
    16621662                     hemlock-editor-document)
    1663   (let* ((doc (send-super 'init))
     1663  (let* ((doc (%inc-ptr self 0))
    16641664         (string (send ts 'string))
    16651665         (cache (hemlock-buffer-string-cache string))
     
    16761676(define-objc-method ((:id init) hemlock-editor-document)
    16771677  (let* ((doc (send-super 'init)))
    1678     (when doc
     1678    (unless  (%null-ptr-p doc)
    16791679      (send doc
    1680         :init-with-text-storage (make-textstorage-for-hemlock-buffer
    1681                                  (make-hemlock-buffer
    1682                                   (lisp-string-from-nsstring
    1683                                    (send doc 'display-name))
    1684                                   :modes '("Lisp" "Editor")))))
     1680        :set-text-storage (make-textstorage-for-hemlock-buffer
     1681                           (make-hemlock-buffer
     1682                            (lisp-string-from-nsstring
     1683                             (send doc 'display-name))
     1684                            :modes '("Lisp" "Editor")))))
    16851685    doc))
    16861686                     
Note: See TracChangeset for help on using the changeset viewer.