Changeset 12643
- Timestamp:
- Aug 21, 2009, 1:20:08 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/source/objc-bridge/objc-runtime.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/objc-bridge/objc-runtime.lisp
r12624 r12643 388 388 389 389 390 (def -ccl-pointerscocoa-framework ()390 (defun load-cocoa-framework () 391 391 (run-in-cocoa-process-and-wait 392 392 #'(lambda () … … 397 397 (open-shared-library "/System/Library/Frameworks/Cocoa.framework/Cocoa") 398 398 #+cocotron-objc 399 (let* ((path (getenv "PATH"))) 400 (unwind-protect 399 (progn 400 (open-shared-library "Foundation.1.0.dll") 401 (open-shared-library "AppKit.1.0.dll") 402 ;; We may need to call #_NSInitializeProcess 403 ;; under Cocotron. If so, we'd need to do 404 ;; so on standalone startup, too, and would 405 ;; have to heap-allocated the string vector 406 ;; and its strings. 407 #+notyet 408 (with-string-vector (argv (kernel-path)) 409 (#_NSInitializeProcess 1 argv))) 410 411 ;(#_GetCurrentEventQueue) 412 (current-ns-thread) 413 (create-void-nsthread)))) 414 415 (pushnew #'load-cocoa-framework *lisp-system-pointer-functions* :key #'function-name) 416 417 #-cocotron 418 (load-cocoa-framework) 419 420 #+cocotron 421 (let* ((path (getenv "PATH"))) 422 (unwind-protect 401 423 (progn 402 424 (setenv "PATH" … … 405 427 (truename "ccl:cocotron;")) 406 428 path)) 407 (open-shared-library "Foundation.1.0.dll") 408 (open-shared-library "AppKit.1.0.dll") 409 ;; We may need to call #_NSInitializeProcess 410 ;; under Cocotron. If so, we'd need to do 411 ;; so on standalone startup, too, and would 412 ;; have to heap-allocated the string vector 413 ;; and its strings. 414 #+notyet 415 (with-string-vector (argv (kernel-path)) 416 (#_NSInitializeProcess 1 argv))) 429 (load-cocoa-framework)) 417 430 (setenv "PATH" path))) 418 ;(#_GetCurrentEventQueue)419 (current-ns-thread)420 (create-void-nsthread))))421 431 422 432
Note:
See TracChangeset
for help on using the changeset viewer.
