Problem:
Creating enterprise applications with the Nature Suite and the need to transfer data from one application to another. Example: App1 is a barcode reader that also produces an inventory. App2 needs a βnewβ copy of the same inventory list information that App1 has just released to fulfill its task of making purchase orders. Two applications and two large databases to compress together in one application, plus the set will continue to grow with a large number of applications.
Understanding:
I fully understand that "Every" application is in its own sandbox. However, when reading documents regarding the new UIDocumentInteractionController API, it seems that the application may plunge a little outside the sandbox into a "Read-In", "View" or "Open-In", which was not separated by a package or created in the application.
Data stream:
I try to make it simple. I am using a sample DocInteraction application downloaded from Apple, and another application ... called App1, to try to work with a simple text file. In App1, I create a simple txt file and save it in a folder with documents. (But is it still inside the application sandbox?). in a modified DocInteraction sample, I tried to define the "View", "Open-In" or, even better, "Read" method in the created txt file. If I can transfer a simple txt file between them, I can include a CSV structure to update the databases on each side when applications open.
I tried using the startup parameter keys with no luck.
In short, I just can't look back:
- Where is App1 data needed?
- How to find data in another application, say, App2?
- How do you βopenβ a file that exists in another application's sandbox?
End result: I tried to stay away from
Interaction with documents:
- Preview a document or presentation options
- Register file type support
- Opening files from other applications
- View and print previews in preview mode
This is β Opening Files from Other Applications β that interests me the most. It directs me to use the application: doneFinishLaunchingWithOptions: method, passing the dictionary values ββfor the keys. This is where I get lost ??? How to set keys so that they know "WHERE" and "WHAT" to look for? And I still do not quite understand which App1 should save the information so that the keys point to the right place?
Opening email attachments and opening PDF files on iBooks may not be the only places where you can use this API, otherwise Apple would not go through all the work, they already allow you to speak from the App-To-App.
Note. I am not trying to force App1 to directly transfer data to App2 files. I do not think that Apple would allow at all! I am trying to get App1 to lock in its data, save it in the right place, so when a user decides to use App2, the data can be accessed by App2 by "reading" the data.
If someone has an example application, a tutorial, or even a solid idea on how to get this working, I would really appreciate help.
-Thanks!
PS Someone with a 1500 or higher reputation, create the "UIDocumentInteraction" tag for stackoverflow!