Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44752

Get access to the security scope resource when opening files with a sandboxed Mac Store app

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.4.1
    • Core: I/O, Extras: Mac
    • None
    • Mac App Store apps

    • macOS

      When using the QFileOpenDialog with a sandboxed Mac App Store app then the scope is not saved, e.g. when the application is closed and re-opened then the file cannot be accessed unless the file open dialog is shown again.

      Apple provides a mechanism called "bookmarks" (entitlement "com.apple.security.files.bookmarks.document-scope" and "com.apple.security.files.bookmarks.app-scope") to remember opened files.

      Access to the files can be gained using the "startAccessingSecurityScopedResource" function which takes the file url (tyoe NSUrl) as arguement which is provided when opening the file the first time.

      Qt should somehow provide means to get this access url and also offer means to pass this url for opening a file.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            laknoll Lars Knoll
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes