Aspects
Aspects copied to clipboard
Hook Class Static Function NSDocumentController : sharedDocumentController Failed!
When I use Aspects Hook NSDocumentController : sharedDocumentController
[NSDocumentController aspect_hookSelector:@selector(sharedDocumentController) withOptions:AspectPositionBefore usingBlock:^(id<AspectInfo> info) {
AspectInfo *appInfo = info;
NSDocumentController *dvc = appInfo.instance;
} error:NULL];
Console log indicates NSMethodSignature doesn't match,But I think is OK,Can you give me some sugesstion ?
Aspects: Block signature <NSMethodSignature: 0x600000078600> doesn't match (null).
Are you testing this on El Capitan?