Using the following code, I'm not getting the DBFile object after my code executes initially. There seems to be a delay. I know the file is there in my Dropbox folder.
DBPath *dbPhotoPath = [dbPhotosFolderPath childPath:photoFileName];<BR />
DBFile *dbPhotoFile = [fileSystem openFile:dbPhotoPath error:&dbError];<BR />
So initially when I run this code the dbPhotoFile ends up being nil. I seem to have to was a little while before calling the code again to get an actual dbPhotoFile object.
I'm calling this code from my NSTableView heightOfRow method to get the height of the row initially and then again to get the image to display in my cell.
The dbPhotoPath object is valid, but the dbPhotoFile is initially nil. I print out the dbError object and there is no error. It is nil.
Is there always going to be a delay in calling the openFile method? Or am I doing something wrong?
Thanks,
Brendan