Access outside the main Bundle - iphone

I want a functionality in which my application can access resources outside its own bundle, for example: there are bunch of '3d Models' which are kept somewhere in iPhone memory (not in applications bundle), in runtime I want to load it and show it in my application,
Application launches.
User may select some model, say a dolphin.
Application accesses that model (which is not in the applications bundle but outside somewhere in iPhone), loads it.
Application displays the model.
Is it possible?
Thanks in advance for any help !

You can use sandbox of your application for this purpose. Read File System Programming Guide for more information.

Related

How to find the application launch and end time in iphone?

I am new to ios development and doing development in ios4.0.1 and xcode 3.2.3. My application should capture other application's launch time and (close) end time. how can we do this? Any help will be appreciated.
Thanks
Pushpa
For apps in the app store, the answer is "You can't". The best way to think of other applications on iOS with respect to yours is: don't. You can't access their data, you can't see if they're running, you can't control them, and you can't change them. Apps are well and truly sand-boxed as a fundamental design decision in the current setup.
About the only thing you can do is trigger their launch with a suitably formatted system URL. If a Wikipedia application has registered the scheme wiki, you might be able to launch and communicate some simple data by having the system load the URL wiki://articleName, but that's the limit. You don't even know what application will be launched, only that one has the wiki handler.
Jail-broken iOS systems are a whole different matter, but I'm assuming you're not working on those.

Store and manage files between two applications?

It is possible to store some application files and share it with another application?
Can application A remove files created in such shared space by application B?
In general, no. There are a few things you can consider.
All apps can read/write/share photos via the user's photos library.
Some apps have been known to share data via the address book. That is, they put data in a special address card which can be read by multiple apps.
If the apps have matching App ID bundle seeds, they can access the same keychain entries. I'm not sure how much data can be stored in the keychain, but it is possible to share data this way.
Apps can pass data to each other via a launch URL. That is, one app can ask iOS to open a URL that launches the next app, and that URL can have parameters that pass data.
No, each application has its own sandbox. Only way to communicate is to use custom URLs to call the other application or have a 'middle man' (eg a computer).
As an alternative to RupertP's answer, the only real work-around is to use a globally-accessible server. A lot of iOS devs use MobileMe's iDisk (not free) or DropBox (free for a limited account).

Browsing through all iPhone application

Hope You all are fine..
I have a query to ask regarding new features of iPhone 4.0
My Question is .. Is there any possibility to brows any document throughout the iPhone through the application ?
I mean, Suppose in one of my application have feature to share file using Bluettoth, Now When i run this application lastly, I received one file from my Friend. and its still there.
Now i Run my Second Application and i want to access those received file in relier application here in new application.. Is there any way to implement this?
If any one have any idea, kindly guide me.
Looking Forwards,
Arun Thakkar
From the Guidelines:
2.6 Apps that read or write data outside its designated container area will be rejected
There might be a global area where you can download and access.. I'll check

Providing API for communicating with a running application?

Basically I'm trying to find a solution to my issue with sharing an object. I've had a look at SpringBoard's implementation and it looks as if SpringBoard is providing a framework which can be used to retrieve SBDisplay objects (which are basically CALayers).
I know this specific issue is related to iPhones, but I also know that this is also used by a lot of Cocoa software. Could someone point out a way to copy such behaviour?
App 1 (Application launcher) :
Launches client applications
Has the main CALayer object
Serves as the window server
App 2 (Client app) :
Needs the main CALayer from App1 to render itself onto
And again, just to reiterate - I am fully aware of AppStore policies. And yes, I am using a jailbroken device.

Regarding iPhone Application Design Document

I am just entered into iPhone Application Development. I have to start the work on iPhone Application. And i have some Requirements Specification for particular application. Now for a starting phase i want to prepare a Design Document for that application. So, anyone can suggest me what i have to include in any mobile or iPhone Application ? If you have any same design document then please provide some link, if possible.
Or else, if you have any other idea for starting the application, then also you can suggest.
Thanks in advance.
As a first step I'd always get the user interface down on paper with some mock-ups of screens, location of controls etc.
From that, I usually write in how the transitions between views are triggered and what information is flowing between different parts of the application with regards to the user interface.
Then, I decide on how I need to store the data in my application (usually a separate class) and how this will be accessed from the rest of the application.
A 3 or 4 page document will cover most small apps. I find doing the UI mock-up and basic data is enough to get going and get a bare bones app working.