Changeset 761
- Timestamp:
- Apr 7, 2004, 8:41:46 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/ccl/examples/cocoa-window.lisp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/examples/cocoa-window.lisp
r705 r761 20 20 (eval-when (:compile-toplevel :load-toplevel :execute) 21 21 (require "OBJC-SUPPORT") 22 (require "COCOA-DEFAULTS")) 22 (require "COCOA-DEFAULTS") 23 (require "COCOA-PREFS")) 23 24 24 25 (eval-when (:compile-toplevel :execute) … … 45 46 :load-nib-named mainnibname 46 47 :owner app) 47 ;; Create an NSThread which does nothing but exit.48 ;; This'll help to convince the AppKit that we're49 ;; multitheaded. (A lot of other things, including50 ;; the ObjC runtime, seem to have already noticed.)51 (send (@class "NSThread")52 :detach-new-thread-selector (@selector "exit")53 :to-target (@class "NSThread")54 :with-object (%null-ptr))55 48 app)))) 56 49 … … 190 183 (quit)) 191 184 185 (define-objc-method ((:void :show-preferences sender) lisp-application) 186 (declare (ignore sender)) 187 (send (send (find-class 'preferences-panel) 'shared-panel) 'show)) 188 192 189 193 190 (defun nslog-condition (c) … … 278 275 (toplevel))))) 279 276 280 (def-cocoa-default *default-font-name* :string "Courier" )281 (def-cocoa-default *default-font-size* :float 12.0 e0)277 (def-cocoa-default *default-font-name* :string "Courier" "Name of font to use in editor windows") 278 (def-cocoa-default *default-font-size* :float 12.0f0 "Size of font to use in editor windows, as a positive SINGLE-FLOAT") 282 279 283 280 (defparameter *font-attribute-names* … … 323 320 (values font implemented-attributes)))))) 324 321 325 (def-cocoa-default *tab-width* :int 8 )322 (def-cocoa-default *tab-width* :int 8 "Width of editor tab stops, in characters" (integer 1 32)) 326 323 327 324 ;;; Create a paragraph style, mostly so that we can set tabs reasonably. … … 430 427 (when title (send w :set-title (%make-nsstring title))) 431 428 w))) 429 430 431 432
Note:
See TracChangeset
for help on using the changeset viewer.
