Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Binary PList format
QtWS25 Last Chance

Binary PList format

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 4.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • clogwogC Offline
    clogwogC Offline
    clogwog
    wrote on last edited by
    #1

    I see QSettings supports the XML PList format on the apple platform, does anyone have a suggestion on how to read/write to the binary version of PList on all platforms ?

    i looked at https://github.com/JonathanBeck/libplist but it has quite a big dependency list.

    is there a multi platform c++ implementation somewhere ?

    just looking for some direction/keywords of where to look next.

    thanks,
    tom

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      [[Doc:QSettings]] writes binary plist files by default - and therefore reads them too, of course :-)

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • clogwogC Offline
        clogwogC Offline
        clogwog
        wrote on last edited by
        #3

        oooh.. i... i... i'm checking now.. if that's right ..
        it is .. thank you very very much !!

        i was looking for a platform independent way, but this will do very well for now.. thanks again.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          You need to read/write those on Linux/Windows too?

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DenisKormalev
            wrote on last edited by
            #5

            You can dive into qt sources to look how it is implemented or use more cross-platform ini-format

            1 Reply Last reply
            0
            • clogwogC Offline
              clogwogC Offline
              clogwog
              wrote on last edited by
              #6

              nah, it's because another (iphone) application writes a binary plist file that i'm trying to read (via dropbox)

              so it can be read by windows and linux machines as well

              going into the qt sources won't help me much because in the platform limitations (http://doc.qt.nokia.com/stable/qsettings.html#platform-limitations) of QSettings it starts with:

              "On Mac OS X, the CFPreferences API used by QSettings expects..."

              so that CFPreferences API won't be available on non mac platforms.

              using ini files would have been great if i controlled the iphone application, but i don't.

              I'll have another look when i finish my mac version first.

              thanks all for thinking along. it's much appreciated !!

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved