Getting the full path of a TFENode in Lion

拟墨画扇 提交于 2019-11-28 01:22:35

问题


I'm trying to get the full path of a TFENode in OSX Lion, but am unable to get a result using the old way (by converting to an FINode and getting the fullPath - the method

[[FINode nodeWithFENode:myTFENode] fullPath]

doesn't seem to work for Lion anymore. Is there a way to do this?


回答1:


From a TFENode, you can get an OpaqueNodeRef, and use that with FINode's nodeFromNodeRef: method. After that, you can get the NSURL to the item with FINode's previewItemURL method.



来源:https://stackoverflow.com/questions/8861503/getting-the-full-path-of-a-tfenode-in-lion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!