How do i create a database inside the Application structure?

i dont known if it;s a good idea, but today my app created a database in the #HOME/Desktop on my mac. But i want that the database still inside the directory of the Aplications…. Is it possible? Is it a good idea?

It is not possible to modify the application bundle as it would break signing. It would seem like virus activity to the operating system and so is not allowed. You can use a folder in Application Support. If you have a template database within your bundle you can copy it to that folder at startup if it isn’t already there.

The short answer is no.

Offhand, I would put it in SpecialFolder.ApplicationData.Child("com.myname.myappname")

Edit: Wrong thread / tab. Oops!
(had to edit this because I couldn’t move the content)