Changeset 817


Ignore:
Timestamp:
May 8, 2004, 1:19:50 PM (21 years ago)
Author:
Gary Byers
Message:

Use #?. SET THE UI OBJECT (lost in 0.14.2 merge.)

File:
1 edited

Legend:

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

    r812 r817  
    139139
    140140;;; This is a reverse-engineered version of most of -[NSApplication terminate],
    141 ;;; split off this way because we don't necessarily wamt to just do
     141;;; split off this way because we don't necessarily want to just do
    142142;;  (#_exit 0) when we've shut down the Cocoa UI.
    143143#+apple-objc
     
    262262               (send *NSApp* :set-application-icon-image
    263263                     (send (@class ns-image) :image-Named #@"NSApplicationIcon"))
     264               (setf (application-ui-object *application*) *NSApp*)
    264265
    265266               (when application-proxy-class-name
     
    352353  (let* ((dict (make-objc-instance
    353354                'ns-mutable-dictionary
    354                 :with-capacity (if color 3 2))))
     355                :with-capacity 5)))
    355356    (send dict 'retain)
    356357    (send dict
    357358          :set-object (create-paragraph-style font line-break-mode)
    358           :for-key #@"NSParagraphStyle")
    359     (send dict :set-object font :for-key #@"NSFont")
     359          :for-key #?NSParagraphStyleAttributeName)
     360    (send dict :set-object font :for-key #?NSFontAttributeName)
    360361    (when color
    361       (send dict :set-object color :for-key #@"NSColor"))
     362      (send dict :set-object color :for-key #?NSForegroundColorAttributeName))
    362363    (when stroke-width
    363364      (send dict :set-object (make-objc-instance 'ns:ns-number
    364365                                                :with-float (float stroke-width))
    365             :for-key #@"NSStrokeWidth"))
     366            :for-key #?NSStrokeWidthAttributeName))
    366367    (when obliqueness
    367368      (send dict :set-object (make-objc-instance 'ns:ns-number
    368369                                                :with-float (float obliqueness))
    369             :for-key #@"NSObliqueness"))
     370            :for-key #?NSObliquenessAttributeName))
    370371    dict))
    371372
Note: See TracChangeset for help on using the changeset viewer.