nst / RuntimeBrowser

Objective-C Runtime Browser, for Mac OS X and iOS
3.57k stars 510 forks source link

Unable to view NSView or NSScrollView on macOS 14 #48

Open skfoo opened 5 months ago

skfoo commented 5 months ago

You can't view either of these classes in the runtime browser. I debugged it and in the case of NSScrollView, it was because one of the methods uses a block implementation (imp_implementationWithBlock). This causes -[RTBMethod dyldInfo] to return nil because it can't get the linker address of a block.

This made the three props that rely on that method return nil (categoryName, symbolName, filePath). Not having those leads to several issues so I just made them return @"(null)" to work around it.