I have the following code in the DoubleClick event of a listbox.
var theItem as FolderItem theItem = new FolderItem(me.SelectedRowValue, FolderItem.PathModes.Native) theItem.parent.Open
The string in
me.SelectedRowValue is a path to a file. The path is a correct native path.
When I run the code, however, the constructed FolderItem
theItem is created with a path that appears to be relative to the application. In other words the path of the created folderItem is the path to the application, plus a space, plus the native path to the file.
/Users/JohnDoe/Documents/Tools/Xojo Projects/ /Users/JohnDoe/Documents/Tools/DATA_SETS/Files/test-file.jpg
Why might that be? I’ve done this before but I’ve never seen this behavior.
What am I overlooking?