Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to rename iPhone application data folder
Forum Updated to NodeBB v4.3 + New Features

How to rename iPhone application data folder

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 1.2k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    kloveridge
    wrote on last edited by
    #1

    This is somewhat irritating. When I launch my iPhone application with Qt 5.4, either Qt 5.4 or Apple (not sure which) decided to name the local data folder:

    @../Library/Application Support@

    Yea. Thats a good idea. Put spaces in the path because writing parsers isn't already difficult enough! How can I rename "Application Support" to something else (how about Application_Support or AppData or just about anything else without a space in it!? Qt 5.3 didn't do this, so I am looking at you Qt 5.4!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's the standard OS X, iOS path for local data.

      What did you have before and how did you retrieve it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kloveridge
        wrote on last edited by
        #3

        It was retrieved the same way in Qt 5.3. I don't have a problem with the ios's path construction except when a folder name has a space in it. A space is a very common delimiter to parse commands with. I know in Qt 5.3, the data folder wasn't "Application Support". It was something like "AppData". I would need to spend a half hour switching branches to recompile my 5.3 version to give the exact name. But this is definitely the culprit

        I will just fix my parser to deal with the space. I'm just whining. ;)

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kloveridge
          wrote on last edited by
          #4

          I ended up doing some further look into the QStandardPaths and found:

          @QStandardPaths::DocumentsLocation@

          to be a more path friendly location to put my content. Technically, what I'm storing is documents. So it fits within my design concept.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Indeed, QStandardPaths is the best way to store your various content on the right place across platforms

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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