Changeset 6587


Ignore:
Timestamp:
May 20, 2007, 9:11:55 AM (18 years ago)
Author:
Gary Byers
Message:

Use #/setDefaultTabInterval, rather than creating a tab stop array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ide-1.0/ccl/examples/cocoa-window.lisp

    r6251 r6587  
    256256    ;; Clear existing tab stops.
    257257    (#/setTabStops: p (#/array ns:ns-array))
    258     (do* ((i 1 (1+ i)))
    259          ((= i 100) p)
    260       (let* ((tabstop (make-instance
    261                        'ns:ns-text-tab
    262                        :with-type #$NSLeftTabStopType
    263                        :location  (* (* i *tab-width*)
    264                                         charwidth))))
    265         (#/addTabStop: p tabstop)
    266         (#/release tabstop)))))
     258    ;; And set the "default tab interval".
     259    (#/setDefaultTabInterval: p (float (* *tab-width* charwidth) +cgfloat-zero+))
     260    p))
    267261   
    268262(defun create-text-attributes (&key (font (default-font))
Note: See TracChangeset for help on using the changeset viewer.