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

Info.plist example shows obsolete CFBundleTypeExtensions key

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.4.0 Beta4
    • Documentation
    • None
    • macOS

      https://doc.qt.io/qt-6/qfileopenevent.html#macos-example has

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
          <key>CFBundleDocumentTypes</key>
          <array>
              <dict>
                  <key>CFBundleTypeExtensions</key>
                  <array>
                      <string>png</string>
                  </array>
                  <key>CFBundleTypeRole</key>
                  <string>Viewer</string>
              </dict>
          </array>
      </dict>
      </plist>
      

      but https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-110725 says it was deprecated in macOS 10.5.

      We need an up-to-date snippet that is tested and working.

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

            richard Richard Moe Gustavsen
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes