问题描述:

Is there a straight-forward way to convert a colon-separated path (i.e. "Macintosh HD:Users:stuarttevendale:Documents:DBTest.db") to an NSURL (i.e. "file://localhost/Users/stuarttevendale/Documents/DBTest.db")?

网友答案:

Such paths are HFS-style paths. Use CFURLCreateWithFileSystemPath() with kCFURLHFSPathStyle.

相关阅读:
Top