<?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 API V2 Objective C search for filetype in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Objective-C-search-for-filetype/m-p/254029#M14667</link>
    <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I am trying to list all pdf's in my Dropbox. I am getting the results back&amp;nbsp;so my question is how do I handle the response?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[[client.filesRoutes search:@"//" query:@".pdf"]
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setResponseBlock:^(DBFILESListFolderResult *response, DBFILESListFolderError *routeError, DBRequestError *networkError) {
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (response) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSArray&amp;lt;DBFILESMetadata *&amp;gt; *entries = response.entries;&amp;nbsp;//CRASHES HERE 'unrecognized selector'
}&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2020 17:10:17 GMT</pubDate>
    <dc:creator>Luben123</dc:creator>
    <dc:date>2020-05-29T17:10:17Z</dc:date>
    <item>
      <title>API V2 Objective C search for filetype</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Objective-C-search-for-filetype/m-p/254029#M14667</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I am trying to list all pdf's in my Dropbox. I am getting the results back&amp;nbsp;so my question is how do I handle the response?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[[client.filesRoutes search:@"//" query:@".pdf"]
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setResponseBlock:^(DBFILESListFolderResult *response, DBFILESListFolderError *routeError, DBRequestError *networkError) {
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (response) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSArray&amp;lt;DBFILESMetadata *&amp;gt; *entries = response.entries;&amp;nbsp;//CRASHES HERE 'unrecognized selector'
}&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 17:10:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Objective-C-search-for-filetype/m-p/254029#M14667</guid>
      <dc:creator>Luben123</dc:creator>
      <dc:date>2020-05-29T17:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 Objective C search for filetype</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Objective-C-search-for-filetype/m-p/254119#M14674</link>
      <description>&lt;P&gt;I figured it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The correct way to handle it is to change the return type of the response to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DBFILESSearchResult *response&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Then the type of the array to:&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NSArray&amp;lt;DBFILESSearchMatch *&amp;gt; *entries = response.matches;&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;The you can iterate through the results like so:&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;for (DBFILESMetadata *entry in entries) {
&amp;nbsp; &amp;nbsp; NSLog(@"output - %@", entry);
}&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;You're welcome!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 15:55:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Objective-C-search-for-filetype/m-p/254119#M14674</guid>
      <dc:creator>Luben123</dc:creator>
      <dc:date>2017-11-27T15:55:23Z</dc:date>
    </item>
  </channel>
</rss>

