From 638cb2d084ea9ddfc01ecf03603ab910dfe59d89 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Wed, 26 Sep 2007 13:20:51 +0200 Subject: Update documentation. darcs-hash:32d8156e02effa3d43909670add8ac0701acba62 --- Lisp/libobjcl.lisp | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) (limited to 'Lisp/libobjcl.lisp') diff --git a/Lisp/libobjcl.lisp b/Lisp/libobjcl.lisp index 5f8d80f..92a3f16 100644 --- a/Lisp/libobjcl.lisp +++ b/Lisp/libobjcl.lisp @@ -270,12 +270,79 @@ conventional case for namespace identifiers in Objective C." (declaim (ftype (function ((or objc-class id exception)) string) objc-class-name)) (defun objc-class-name (class) + "Find the name of a class. + +## Arguments and Values: + +*class* --- an **object** of **type** __objc-id__ or __objc-class__. + +Returns: *name* --- a **string**. + + +## Description: + +__objc-class-name__ returns the name of *class*. + + +## Examples: + + (objc-class-name (find-objc-class 'ns-object)) ;=> \"NSObject\" + + +## Note: + +If *x* is an **object** of **type** __objc-id__ or __objc-class__: + + (objc-eql x (find-objc-class (objc-class-name x))) ;=> T + +If *name* is the name of an existing class: + + (equal name (objc-class-name (find-objc-class name))) ;=> T + + +## See Also: + + __find-objc-class__" (declare (type (or objc-class id exception) class)) (%objcl-class-name (pointer-to class))) (declaim (ftype (function (selector) string) selector-name)) (defun selector-name (selector) + "Find the name of a selector. + +## Arguments and Values: + +*selector* --- an **object** of **type** __selector__. + +Returns: *name* --- a **string**. + + +## Description: + +__selector-name__ returns the name of *selector*. + + +## Examples: + + (selector-name (selector '(:string-with-c-string :encoding))) + ;=> \"stringWithCString:encoding:\" + + +## Note: + +If *x* is an **object** of **type** __selector__: + + (objc-equal x (find-selector (selector-name x))) ;=> T + +If *name* is the name of an existing selector: + + (equal name (selector-name (find-selector name))) ;=> T + + +## See Also: + + __find-selector__, __selector__" (declare (type selector selector)) (%objcl-selector-name (pointer-to selector))) -- cgit v1.2.3