【发布时间】:2010-11-05 22:03:56
【问题描述】:
我的应用中有一个 NSPathControl 供用户选择其硬盘上的文件。
我正在尝试使用
-(IBAction) clickedPath:(id) sender {
NSString *string=[[NSString alloc] initWithFormat:[[pathControl clickedPathComponentCell] stringValue]];
NSLog (@"%@", string);
}
但这只会输出文件名。如何获取文件的完整路径?
提前致谢!
【问题讨论】: