Search code examples
objective-cosx-lionfinder

Getting the full path of a TFENode in Lion


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?


Solution

  • 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.