PDA

View Full Version : xml caching




blackrock
Dec 6, 2008, 09:18 AM
Hello everyone!

I'm new in iPhone sdk and i have few questions about caching!

I have simple application that repeatedly gets XML document from server. My problem is that getting this XML document from this server is asking about 20 seconds. And that is unacceptable.

So can i cache this XML document?

My guess wold be:
In Objective c there is NSURLCache... (I have not used it in practice)!

and initializing this object you say initWithMemoryCapacity:diskCapacity:diskPath:!

But what Disk Path should i use on iPhone!

I have heard that third party applications have no access to iPhones disk.

Am i thinking in right direction?

If not, then if there anyone that could help me!