2012-08-17 121 views
0
class_addMethod(finder_class, @selector(FO_drawIconWithFrame:), 
        class_getMethodImplementation(self_class, @selector(FO_drawIconWithFrame:)),"[email protected]:{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。但[自节点] < - 错误我想帮助Finder覆盖全路径!(列表覆盖)

回答

0

这项工作?

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

NSString *path = [url path]; 
+0

谢谢!这项工作! – myo 2012-10-30 08:09:39