Changeset 817
- Timestamp:
- May 8, 2004, 1:19:50 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/ccl/examples/cocoa-window.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/examples/cocoa-window.lisp
r812 r817 139 139 140 140 ;;; This is a reverse-engineered version of most of -[NSApplication terminate], 141 ;;; split off this way because we don't necessarily wa mt to just do141 ;;; split off this way because we don't necessarily want to just do 142 142 ;; (#_exit 0) when we've shut down the Cocoa UI. 143 143 #+apple-objc … … 262 262 (send *NSApp* :set-application-icon-image 263 263 (send (@class ns-image) :image-Named #@"NSApplicationIcon")) 264 (setf (application-ui-object *application*) *NSApp*) 264 265 265 266 (when application-proxy-class-name … … 352 353 (let* ((dict (make-objc-instance 353 354 'ns-mutable-dictionary 354 :with-capacity (if color 3 2))))355 :with-capacity 5))) 355 356 (send dict 'retain) 356 357 (send dict 357 358 :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) 360 361 (when color 361 (send dict :set-object color :for-key # @"NSColor"))362 (send dict :set-object color :for-key #?NSForegroundColorAttributeName)) 362 363 (when stroke-width 363 364 (send dict :set-object (make-objc-instance 'ns:ns-number 364 365 :with-float (float stroke-width)) 365 :for-key # @"NSStrokeWidth"))366 :for-key #?NSStrokeWidthAttributeName)) 366 367 (when obliqueness 367 368 (send dict :set-object (make-objc-instance 'ns:ns-number 368 369 :with-float (float obliqueness)) 369 :for-key # @"NSObliqueness"))370 :for-key #?NSObliquenessAttributeName)) 370 371 dict)) 371 372
Note:
See TracChangeset
for help on using the changeset viewer.
