The following code works in Windows, but not on the Mac:
If lstFiles.SelectedRowIndex > -1 Then
Var file As String
file = txtImageFolderIn.Text + lstFiles.SelectedRowValue
Var fileItem As New FolderItem(file)
If fileItem <> Nil And fileItem.Exists Then
Var pictPhoto As Picture = Picture.Open(fileItem)
// More code here.
End If
End If
txtImageFolderIn contains the folder path and lstFiles contains a list of .jpg image files.
For some reason, the fileItem is assigned, but the Exists property is false. I have no idea why. Obviously, the Picture.Open call will not work if the fileItem is considered non-existent.
Please note that I’m a Windows developer trying to become a Windows/Mac cross-platform developer, which means I’m new at both Xojo and Mac. If there is something obvious that Mac users know, please explain.
Any help would be appreciated.