views:

115

answers:

2

Hello everyone,

I know that you can access your own application files using NSDocumentDirectory and such, but can you do that on other applications. For example, if I wanted the Documents of another application, would it be possible to get that information? From the iPhone OS Library as directed here.

Sincerely,

Kevin

+3  A: 

No, you are limited to accessing files within the application sandbox

David Gelhar
+1  A: 

You can't directly access the files, however there are a few tricks:

If you are trying to share data amongst a family of apps within the same Wildcard App Id, you can share data via the Keychain.

You can also share data using a custom Pasteboard object.

Of course you can always send data to a server you control.

Another neat trick is saving some data as metadata in the Address Book.

If it is ok, to have some user interaction, you can pass data to another app by launching it the a custom URL scheme.

But, unfortunately direct file access is not allowed.

Brad Smith