Le 11 avr. 08 à 22:08, Ryan Chapman a écrit :

Is there a utility that will list the classes/methods of a framework/ dynamic
library, whether the library was written using C, Carbon or Cocoa?


A compile C binary does not contains C functions signatures. It contains the functions names but neither arguments nor return type. C++ symbols are mangled using arguments type to allow argument overriding, so you can retreive signature from the function name (man c ++filt)
To list unstripped symbols in a binary, see the nm tools.

Obj-C use a dynamic runtime with dynamic binding, and so, an obj-c binary does not need to export methods symbols and need just export class names (in fact, the 32 bits runtime unlike the 64 bits one, does not allow to declare a class as hidden). But the obj-c runtime need a bunch of informations (class descriptions, methods list and signatures, etc) that are stored in a special section of any obj-c binary. You can read it using otool (otool -ov binaryfile)


Don't hope to get a lots of informations about reverse enginering and use of private API on this list.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to