I’m trying to make my app create a bundle as it’s saved file. This bundle will contain an SQLite database.
Can’t find much info on it so I tried to make my app create a folder from a SaveAsDialog and assign a filetype to that folder.
Using App Wrapper Mini to have it set the document to LSTypeIsPackage=1.
On my dev machine (10.8.4) this is actually working like it should. A bundle is created with my custom file extension.
But when I try the app on 10.7, a regular FOLDER is created instead and it’s acting like…surprise…a folder!
Does anyone know how to properly have your app create a bundle?
Sounds like that could be it
Any idea if there’s anything that can be done to fix that? It’s not so good if my apps files shows up as folders on a computer after the first install w/o a restart
Wonder if this will be an issue when the app is installed from MAS?
Apparently this Terminal command will flush the cache…
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
I am trying to understand how to create a document bundle, if I wanted to create one from my app.
From what I can see of the iPhoto Library one in Pictures, it contains indeed a ‘Content’ folder and a pkginfo file which if I understand right makes it able to show characteristics of an iPhoto document.
From what I could glean on Internet, the content of pkginfo is composed of twice 4 characters. But information is hard to come by. Does it has any relationship with Mac Type and Mac creator ? In my apps, it is APPL???, and in the iPhoto Library iPlbiPho.
Looking at the iPhoto info.plist, I found
Are they the two informations necessary to build the pkginfo string ?
I also noted there is no info.plist in the iPhoto Library, contrary to an app bundle.
The other question is : how does one create a folder with the attributes of a bundle, so it opens with right click “Show package content” instead of double click, or if double clicked, is opened by the corresponding application ? Is it possible through Xojo or is there a command line way ?