我想帮助Finder Overlay FullPath!(List Overlay)

时间:2012-08-17 02:42:29

标签: objective-c overlay finder

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

1 个答案:

答案 0 :(得分:0)

这有用吗?

NSURL *url = [[NSClassFromString(@"FINode") nodeFromNodeRef:[(TNodeIconAndNameCell *)self node ]->fNodeRef] previewItemURL];

NSString *path = [url path];