Changeset 5864


Ignore:
Timestamp:
Feb 2, 2007, 1:31:20 AM (18 years ago)
Author:
Gary Byers
Message:

Change the initialization code a bit.

Location:
trunk/ccl/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/examples/addressbook.lisp

    r5725 r5864  
    1717(eval-when (:compile-toplevel :load-toplevel :execute)
    1818  (require "OBJC-SUPPORT")
    19   (use-interface-dir :addressbook)
    20   (reset-objc-class-count)
    21   (update-objc-method-info))
     19  (augment-objc-interfaces :addressbook))
    2220
    2321(let* ((checked-for-addressbook nil)
     
    2826  (defun check-for-addressbook ()
    2927    (if checked-for-addressbook
    30         addressbook-loaded
    31         (with-autorelease-pool
    32          (let* ((bundle
    33                  (send
    34                   (@class "NSBundle")
    35                   :bundle-with-path
    36                   #@"/System/Library/Frameworks/Addressbook.framework")))
    37            (setq checked-for-addressbook t
    38                  addressbook-loaded (unless (%null-ptr-p bundle)
    39                                  (send (the ns:ns-bundle bundle) 'load)))
    40            ;; Process class, method decls
    41            (map-objc-classes)
    42            addressbook-loaded)))))
     28      addressbook-loaded
     29      (setq checked-for-addressbook t
     30            addressbook-loaded (load-objc-extension-framework "AddressBook")))))
    4331
    4432(defun require-addressbook ()
    4533  (or (check-for-addressbook)
    46       (error "The Addressbook framework doesn't seem to be installed on this machine.~&
    47               It's available as part of Safari 1.0.")))
     34      (error "The AddressBook framework doesn't seem to be installed on this machine.")))
    4835
    4936(eval-when (:compile-toplevel :load-toplevel :execute)
  • trunk/ccl/examples/webkit.lisp

    r4792 r5864  
     1
    12;;;-*-Mode: LISP; Package: CCL -*-
    23
     
    2324    (if checked-for-webkit
    2425      webkit-loaded
    25       (load-objc-extension-framework "WebKit"))))
     26      (setq checked-for-webkit t
     27            webkit-loaded (load-objc-extension-framework "WebKit")))))
    2628
    2729(defun require-webkit ()
Note: See TracChangeset for help on using the changeset viewer.