limneos / classdump-dyld

Class-dump any Mach-o file without extracting it from dyld_shared_cache
590 stars 99 forks source link

What happens if a class and a protocol exist with the same name? #10

Open NSExceptional opened 8 years ago

NSExceptional commented 8 years ago

For example, UITableViewDataSource is a private class and a public protocol, so I assume what happens is the protocol gets dumped and then is overwritten when the class gets dumped, and the class dumped file attempts to import the protocol, which means the class will import itself.

Was this overlooked or is this behavior defined somewhere? And if so, why does the class still import itself...