Details
-
Technical task
-
Resolution: Done
-
P1: Critical
-
2e902799df6298ad4c75b4c565a0baf9cb7f7ab8 (Qt 5) 37212b8c063b456b036f87841e596ee7d857052f (4.8)
Description
This is somewhat language/framework independent, as it mostly has to do with providing an XML
"entitlements" configuration file (which goes into the application bundle) and
code-signing your binaries/bundle.
http://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/
For instance you can grant your application the right to read/write files as
specified by the user (via file dialog). From the Apple docs:
"Any time an application running inside a sandbox invokes an NSOpenPanel or
NSSavePanel dialog, rather than showing the panels directly, AppKit
automatically asks the Powerbox to present the dialog. From a developer
perspective, there are no code changes required in terms of how these panels are
used; this process is fully transparent."
So as long as Qt/Mac would use NSOpenPanel etc. properly there should be no code
changes required - in theory!
In practice I found out that Qt crashes as soon as I request a (native!) file
dialog. Details here (unfortunately I received no answers yet):
http://lists.qt.nokia.com/pipermail/qt-interest/2011-August/035597.html
Attachments
Issue Links
- relates to
-
QTBUG-31465 Sandboxed QFileDialog behaves inconsistently for saving
- Reported
-
QTBUG-30278 QFileDialog::getSaveFileName() hangs when running a sandboxed application under Mac OS X 10.7.5 (Lion)
- Closed
-
QTBUG-34560 QFileDialog::getOpenFileName() disabled file issues with sandboxed app under OS X 10.9 (Mavericks)
- Closed
For Gerrit Dashboard: QTBUG-21609 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
16388,2 | Fix modal file dialog opening on Mac | 4.8 | qt/qt | Status: MERGED | +2 | 0 |
16389,1 | Fix crash when opening a file dialog in sandbox on Mac | 4.8 | qt/qt | Status: MERGED | +2 | 0 |
22557,13 | Sand box support, fix for the file dialogs. | master | qt/qtbase | Status: MERGED | +2 | 0 |