source: branches/objc-gf/ccl/examples/objc-package.lisp @ 6156

Last change on this file since 6156 was 6156, checked in by gb, 13 years ago

Export more stuff, especially from objc package.

File size: 2.1 KB
Line 
1;;;-*-Mode: LISP; Package: CCL -*-
2;;;
3;;;   Copyright (C) 2007 Clozure Associates and contributors.
4;;;   This file is part of OpenMCL. 
5;;;
6;;;   OpenMCL is licensed under the terms of the Lisp Lesser GNU Public
7;;;   License , known as the LLGPL and distributed with OpenMCL as the
8;;;   file "LICENSE".  The LLGPL consists of a preamble and the LGPL,
9;;;   which is distributed with OpenMCL as the file "LGPL".  Where these
10;;;   conflict, the preamble takes precedence. 
11;;;
12;;;   OpenMCL is referenced in the preamble as the "LIBRARY."
13;;;
14;;;   The LLGPL is also available online at
15;;;   http://opensource.franz.com/preamble.html
16;;;
17
18(in-package "CCL")
19
20;;; All class names and instance variable names are interned in the NS package
21;;; Force all symbols interned in the NS package to be external
22
23(defpackage "NS"
24  (:use)
25  (:export "+CGFLOAT-ZERO+" "CGFLOAT"))
26
27(eval-when (:compile-toplevel :load-toplevel :execute)
28  (package-force-export "NS"))
29
30;;; ObjC function names (as produced by #/) are interned in NSF.
31(defpackage "NEXTSTEP-FUNCTIONS"
32  (:use)
33  (:nicknames "NSFUN"))
34
35(eval-when (:compile-toplevel :load-toplevel :execute)
36  (package-force-export "NSFUN"))
37
38(defpackage "OBJC"
39  (:use)
40  (:export "OBJC-OBJECT" "OBJC-CLASS-OBJECT" "OBJC-CLASS" "OBJC-METACLASS"
41           "@CLASS" "@SELECTOR" "MAKE-OBJC-INSTANCE" "RETURNING-FOREIGN-STRUCT"
42           "DEFMETHOD" "SLET" "SEND" "SEND/STRET" "SEND-SUPER" "SEND-SUPER/STRET"
43           "DEFINE-OBJC-METHOD" "DEFINE-OBJC-CLASS-METHOD"
44           "OBJC-MESSAGE-SEND" "OBJC-MESSAGE-SEND-STRET"
45           "OBJC-MESSAGE-SEND-SUPER" "OBJC-MESSAGE-SEND-SUPER-STRET"
46           "LOAD-FRAMEWORK"))
47
48
49(eval-when (:compile-toplevel :load-toplevel :execute)
50  (import '(objc:@class objc:@selector objc:make-objc-instance
51            objc:send objc:send/stret objc:send-super objc:send-super/stret
52            ns:+cgfloat-zero+ ns:cgfloat
53            objc:define-objc-method objc:define-objc-class-method
54            objc:objc-message-send objc:objc-message-send-stret
55            objc:objc-message-send-super objc:objc:message-send-super-stret
56            )
57          "CCL"))
58
59(provide "OBJC-PACKAGE")
Note: See TracBrowser for help on using the repository browser.