<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sync API openFile delay OS X in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-openFile-delay-OS-X/m-p/111714#M3267</link>
    <description>&lt;P&gt;One of my sentences up there should read "I seem to have to wait a little while".&lt;/P&gt;

&lt;P&gt;Does the openFile command perhaps operate asynchronously? Or does the sync API need to be "warmed up" or something before the openFile call will return anything?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2015 05:26:40 GMT</pubDate>
    <dc:creator>Brendan D.</dc:creator>
    <dc:date>2015-01-26T05:26:40Z</dc:date>
    <item>
      <title>Sync API openFile delay OS X</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-openFile-delay-OS-X/m-p/111713#M3266</link>
      <description>&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;DBPath *dbPhotoPath = [dbPhotosFolderPath childPath:photoFileName];&lt;BR /&gt;
    DBFile *dbPhotoFile = [fileSystem openFile:dbPhotoPath error:&amp;amp;dbError];&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;I'm calling this code from my &lt;CODE&gt;NSTableView heightOfRow&lt;/CODE&gt; method to get the height of the row initially and then again to get the image to display in my cell.&lt;/P&gt;

&lt;P&gt;The &lt;CODE&gt;dbPhotoPath&lt;/CODE&gt; object is valid, but the &lt;CODE&gt;dbPhotoFile&lt;/CODE&gt; is initially nil. I print out the dbError object and there is no error. It is nil. &lt;/P&gt;

&lt;P&gt;Is there always going to be a delay in calling the openFile method? Or am I doing something wrong?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Brendan&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:45:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-openFile-delay-OS-X/m-p/111713#M3266</guid>
      <dc:creator>Brendan D.</dc:creator>
      <dc:date>2019-05-29T09:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sync API openFile delay OS X</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-openFile-delay-OS-X/m-p/111714#M3267</link>
      <description>&lt;P&gt;One of my sentences up there should read "I seem to have to wait a little while".&lt;/P&gt;

&lt;P&gt;Does the openFile command perhaps operate asynchronously? Or does the sync API need to be "warmed up" or something before the openFile call will return anything?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 05:26:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-openFile-delay-OS-X/m-p/111714#M3267</guid>
      <dc:creator>Brendan D.</dc:creator>
      <dc:date>2015-01-26T05:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sync API openFile delay OS X</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-openFile-delay-OS-X/m-p/111715#M3268</link>
      <description>&lt;P&gt;Ok, never mind. It turns out it was my DBFileSystem which was being initialized after a delay.&lt;/P&gt;

&lt;P&gt;All is well. Sorry to bother you.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 08:05:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sync-API-openFile-delay-OS-X/m-p/111715#M3268</guid>
      <dc:creator>Brendan D.</dc:creator>
      <dc:date>2015-01-26T08:05:28Z</dc:date>
    </item>
  </channel>
</rss>

