Joy Online Manual
|
Static methods of ObjC returning information about the Objective-C runtime environment |
ObjC.classes()
ObjC.classes(regExp)
|
Returns an array of all classes known to the Objective-C run-time environment. An optional regular expression may be specified to return only classes which match regExp. |
ObjC.classMethodsOf(class)
ObjC.classMethodsOf(class, regExp)
ObjC.allClassMethodsOf(class)
ObjC.allClassMethodsOf(class, regExp)
|
The classMethodsOf() method returns an array containing the names of class methods implemented by the Objective-C class class. The allClassMethodsOf() variant includes methods inherited from superclasses. An optional regular expression may be specified to return only those methods which match regExp. |
ObjC.classObjects()
ObjC.classObjects(regExp)
ObjC.classObjectsOf(class)
ObjC.classObjectsOf(class, regExp)
ObjC.allClassObjectsOf(class)
ObjC.allClassObjectsOf(class, regExp)
|
The classObjects() method returns an array of all class and metaclass objects in the Objective-C runtime system. The classObjectsOf() method returns only the class and metaclass objects of the Objective-C class class. The allClassObjectsOf() variant includes class objects of subclasses. An optional regular expression may be specified to return only objects which match regExp. |
ObjC.functions()
ObjC.functions(regExp)
|
Returns an array of the names of all C function prototypes in currently imported precompiled header files. An optional regular expression may be specified to return only functions which match regExp. |
js> ObjC.functions(/sin/)
["asinh", "sinh", "asin", "sin", "PSsin", "isinf"]
ObjC.imported()
ObjC.imported(regExp)
|
Returns an array of the paths of all precompiled Objective-C header files that are currently imported. An optional regular expression may be specified to return only paths which match regExp. |
js> ObjC.imported(/NSWindow/)
["/System/Library/Frameworks/AppKitScripting.framework/Headers/NSWindow_Scripting.h", "/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h", "/System/Library/Frameworks/AppKit.framework/Headers/NSWindowController.h"]
ObjC.instanceMethodsOf(object)
ObjC.instanceMethodsOf(object, regExp)
ObjC.allInstanceMethodsOf(object)
ObjC.allInstanceMethodsOf(object, regExp)
|
The instanceMethodsOf() method returns an array containing the names of instance methods implemented by the Objective-C object or class object. The allInstanceMethodsOf() variant includes methods inherited from superclasses. An optional regular expression may be specified to return only those methods which match regExp. |
ObjC.instances()
ObjC.instances(regExp)
ObjC.instancesOf(class)
ObjC.instancesOf(class, regExp)
ObjC.allInstancesOf(class)
ObjC.allInstancesOf(class, regExp)
|
The instances() method returns an array containing all Objective-C instances known to Joy. The instancesOf() method returns only instances of the Objective-C class class. The allInstancesOf() variant includes instances of subclasses. An optional regular expression may be specified to return only objects which match regExp. |
ObjC.ivarsOf(object)
ObjC.ivarsOf(object, regExp)
ObjC.allIvarsOf(object)
ObjC.allIvarsOf(object, regExp)
|
The ivarsOf() method returns an array containing the names of instance variables of the Objective-C object or class object. The allIvarsOf() variant includes instance variables inherited from superclasses. An optional regular expression may be specified to return only instance variables which match regExp. |
ObjC.macros()
ObjC.macros(regExp)
|
Returns an array of the names of all macro constants defined by currently imported precompiled header files. An optional regular expression may be specified to return only macros which match regExp. |
ObjC.protocols()
ObjC.protocols(regExp)
ObjC.protocolsOf(object)
ObjC.protocolsOf(object, regExp)
ObjC.allProtocolsOf(object)
ObjC.allProtocolsOf(object, regExp)
|
The protocols() method returns an array of the names of all protocols known to Joy. The protocolsOf() method returns only protocols adopted by the Objective-C object or class object. The allProtocolsOf() variant includes protocols adopted by other protocols or by superclasses. An optional regular expression may be specified to return only protocols which match regExp. |
ObjC.subclassesOf(class)
ObjC.subclassesOf(class, regExp)
ObjC.allSubclassesOf(class)
ObjC.allSubclassesOf(class, regExp)
|
The subclassesOf() method returns an array containing all direct subclasses of the Objective-C class class. The allSubclassesOf() variant includes indirect subclasses. An optional regular expression may be specified to return only subclasses which match regExp. |
ObjC.typedefs()
ObjC.typedefs(regExp)
|
Returns an array of the names of all typedef types defined by currently imported precompiled header files. An optional regular expression may be specified to return only types which match regExp. |
js> ObjC.typedefs(/^NSWindow/)
["NSWindowAuxiliaryOpaque", "NSWindowOrderingMode", "NSWindowDepth"]
ObjC.variables()
ObjC.variables(regExp)
|
Returns an array of the names of all C variables declared by currently imported precompiled header files. An optional regular expression may be specified to return only variables which match regExp. |
js> ObjC.variables(/icon/i)
["NSIconSize"]