Aspects icon indicating copy to clipboard operation
Aspects copied to clipboard

Hook Class Static Function NSDocumentController : sharedDocumentController Failed!

Open javaliker opened this issue 9 years ago • 1 comments

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).

javaliker avatar Dec 07 '15 09:12 javaliker

Are you testing this on El Capitan?

steipete avatar Dec 07 '15 09:12 steipete