How can I get list of classes already loaded into memory in specific bundle (or binary)?

Viewed 2735

It's possible to get list of classes from a bundle via NSBundleDidLoadNotification. But I can't figure out how I can get them from already loaded bundle. (same bundle with code)

I'm trying to get class list of my application bundle. More specifically, the classes only in my application binary.

I looked at objc_getClassList, but it returns ALL classes and it's obviously too heavy for me. I need lightweight method. I found objc_copyClassNamesForImage by googling, but it's not documented, and I don't know how to use it safely. I think I can try to use it conventionally, but I want to find another more safe option before going there.

3 Answers
Related