Cocoa File Dialog: Remove sandbox-ufriendly file system watcher
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>
Tue, 5 Nov 2013 12:16:59 +0000 (13:16 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 8 Nov 2013 10:35:29 +0000 (11:35 +0100)
commitc934ea341e0749aef9c927ca3def68976bdc976f
tree94ded1177d3bfe181a19d08b9ec5ba5004dfe6b6
parent7a3c82077f909e314cbc685e7ecfc70d08cc42d6
Cocoa File Dialog: Remove sandbox-ufriendly file system watcher

QFileSystemWatcher causes sandboxing errors since its backend uses
POSIX API in a relatively liberal way.

Also, Cocoa already acts as a file system watcher, and calls
-[QNSOpenSavePanelDelegate panel:shouldShowFilename:] on each
file. From a logical point of view, caching the directory content
can be replaced by testing the current file against the filter
setting. We expect Cocoa to cache results, and by using NSFileManager
things should remain relatively fast.

Task-number: QTBUG-34107
Change-Id: Ia872b9b1244f7b390d173a498011379b9309b3c6
Reviewed-by: Cyril Oblikov <munknex@gmail.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm