September 2002
Intermediate to advanced
1272 pages
31h 12m
English
This section contains examples that use the Objective-C runtime to obtain detailed information about the objects in an application. None of the examples are complete. They each show just enough to illustrate how to perform a certain task using the runtime. The examples need to be incorporated into larger Cocoa applications to be of any practical use.
The MYShowAllClasses() function, in this example, prints the name of every class linked to a Cocoa application. Call this function from within a Cocoa application that is run in Project Builder or from a Terminal to see the output. This function can be trivially modified to return an NSArray containing the NSString names of all classes linked into an application. ...
Read now
Unlock full access