Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-16-2009, 12:56 AM   #1 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 362
mpramodjain is on a distinguished road
Default Accessing Cache directory of the iphone

Hi,

Can anyone help me in knowing how to access the files in the Cache directory of the iphone. I would like to place the data downloaded from http server and place the xml content in a file created by myself. for every 1min I will be refreshing the content in the file (or deleting the file and creating again) to cache my content and its updates.

If anyone had tried , please help me by throwing possbilites through the sdk..

Thank u.

Hi,

I have gone through the URLCache Code but it doesnot writing the content in the Cache directory in LIBRARY . It is writing the content in the DOCUMENTS directory of the application.

When I tried to write in LIBRARY/CACHE (as per the documentS), I didnt find the CACHE directory in the LIBRARY folder itself.

Do anyone know how to get the LIBRARY/CACHE accessed.

Thank u.

Last edited by mpramodjain; 01-16-2009 at 03:00 AM. Reason: URLCache.
mpramodjain is offline   Reply With Quote
Old 01-16-2009, 03:34 AM   #2 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 362
mpramodjain is on a distinguished road
Default version difference 2.1 -> 2.2

Hi,

I found after some googling around , that LIBRARY/Cache folder is available from ver. 2.2 sdk.
mpramodjain is offline   Reply With Quote
Old 01-16-2009, 04:20 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,050
wuf810 is on a distinguished road
Default

Quote:
Originally Posted by mpramodjain View Post
Hi,

Can anyone help me in knowing how to access the files in the Cache directory of the iphone. I would like to place the data downloaded from http server and place the xml content in a file created by myself. for every 1min I will be refreshing the content in the file (or deleting the file and creating again) to cache my content and its updates.

If anyone had tried , please help me by throwing possbilites through the sdk..

Thank u.

Hi,

I have gone through the URLCache Code but it doesnot writing the content in the Cache directory in LIBRARY . It is writing the content in the DOCUMENTS directory of the application.

When I tried to write in LIBRARY/CACHE (as per the documentS), I didnt find the CACHE directory in the LIBRARY folder itself.

Do anyone know how to get the LIBRARY/CACHE accessed.

Thank u.
There is an example app called URLCache that shows how to cache web pages. Check it out in the iPhone Dev Centre
wuf810 is offline   Reply With Quote
Reply

Bookmarks

Tags
cache, directory., file

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 416
17 members and 399 guests
7twenty7, Alex-alex, Apptronics RBC, baja_yu, dre, FrankWeller, gwelmarten, ipodphone, jeroenkeij, jleannex55, matador1978, n00b, pbart, reficul, Retouchable, Sami Gh, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0