Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.pcisys.net!news.pcisys.net.POSTED!not-for-mail NNTP-Posting-Date: Tue, 12 Apr 2011 15:41:31 -0500 From: Tom Harrington Newsgroups: comp.lang.objective-c Subject: Re: IPAD saving a file Organization: Atomic Bird References: User-Agent: MT-NewsWatcher/3.5.1 (Intel Mac OS X) Date: Tue, 12 Apr 2011 14:41:31 -0600 Message-ID: Lines: 32 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-P8Ipuj7+TtuZ19NoVH04f5laqiave2lXFSmY6DTiE47MkHopbLGBNCOKPcBPNq9EovyFDJQ2qqlaUSX!QDV/qeTeUgMvex4GvWaaXKVvaxN8xmjdtM0T7V37YD+u/FtkwzssnBpFD50c2RDDNVeY2Y5IIvoD!VxCZEQ== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2161 Xref: x330-a1.tempe.blueboxinc.net comp.lang.objective-c:13 In article , Suresh Kumar Narayanasamy wrote: > Hi, > I am creating a sample application where it downloads 100 images from > server and stores it in IPAD. > In XCOde, i am using the NSURL to retrieve the image file and using > NSdata to save it into my local folder. Your shift key appears to be broken, you might want to look into that. > I am able to save the images in my mac air desktop folder. But i want > my application to be deployed in IPAD. > So here is my question. > * Where do i store the file in my IPAD, so that my application can > retrieve the iamges when needed. Every iOS application has its own documents folder, which it can use to save whatever data it needs to save. > * If possible can someone give me the code for saving the images in > your IPAD resource directory (or whatever directory needed). Just the > code where you build the path will do good. Apple provides this many times, look for sample code that calls the NSSearchPathForDirectoriesInDomains() function. -- Tom "Tom" Harrington Independent Mac OS X developer since 2002 http://www.atomicbird.com/