title: Allow only folders and files in NSOpenPanel
body: <p>In  my application I need to support folders and files selection. So far I have these settings</p>
  
  <pre><code>NSOpenPanel *openPanel = [[NSOpenPanel alloc] init];
  [openPanel setAllowsMultipleSelection:YES];
  [openPanel setCanChooseDirectories:YES];
  [openPanel setCanCreateDirectories:NO];
  </code></pre>
  
  <p>But with this anyone can choose <code>.app</code> files(folders in reality). I see that there is an option for setting allowed file types which doesnt work here as I need a wildcard file selection and exclude only particular types. </p>
  
  <p>Is there any way to exclude these files ?</p>