2012-08-17 126 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