class_addMethod(finder_class, @selector(FO_drawIconWithFrame:),
class_getMethodImplementation(self_class, @selector(FO_drawIconWithFrame:)),"v@:{CGRect={CGPoint=dd}{CGSize=dd}}");
old = class_getInstanceMethod(finder_class, @selector(drawIconWithFrame:));
new = class_getInstanceMethod(finder_class, @selector(FO_drawIconWithFrame:));
method_exchangeImplementations(old, new);
// AND//
FO_drawIconWithFrame
{
...
NSString *path = [self objectValue];
...
}
我想要FullPath。但是[自我节点]< - ERROR
答案 0 :(得分:0)
这有用吗?
NSURL *url = [[NSClassFromString(@"FINode") nodeFromNodeRef:[(TNodeIconAndNameCell *)self node ]->fNodeRef] previewItemURL];
NSString *path = [url path];