Re: saving images

2012-07-23 Thread Matt Neuburg
On Sat, 21 Jul 2012 17:03:23 +0100, "H. Miersch" said: > >i just started a new ios project where i want to download images using >NSimage's initwithcontentsofURL: method. >now i also want to write those images to permanent storage, but how do i do >that? (1) There is no NSImage on iOS. (2) Do

Re: saving images

2012-07-21 Thread Graham Cox
On 22/07/2012, at 2:58 AM, Conrad Shultz wrote: > Note that UIImage conforms to NSCoding, so once you've loaded a UIImage > through whichever means you prefer (NSData, the URL loading system, etc.) you > can archive the image to an NSData (and of course unarchive) in the usual > manner. UII

Re: saving images

2012-07-21 Thread Nick Zitzmann
On Jul 21, 2012, at 10:41 AM, H. Miersch wrote: > > On 21. Jul 2012, at 17:37, Nick Zitzmann wrote: > >> >> On Jul 21, 2012, at 10:03 AM, H. Miersch wrote: >> >>> i just started a new ios project where i want to download images using >>> NSimage's initwithcontentsofURL: method. >>> now i al

Re: saving images

2012-07-21 Thread Conrad Shultz
NSImage is for OS X. You need to use UIImage on iOS. One difference is that UIImage doesn't have an -initWithContentsOfURL: method. Note that UIImage conforms to NSCoding, so once you've loaded a UIImage through whichever means you prefer (NSData, the URL loading system, etc.) you can archive

Re: saving images

2012-07-21 Thread H. Miersch
On 21. Jul 2012, at 17:37, Nick Zitzmann wrote: > > On Jul 21, 2012, at 10:03 AM, H. Miersch wrote: > >> i just started a new ios project where i want to download images using >> NSimage's initwithcontentsofURL: method. >> now i also want to write those images to permanent storage, but how do

Re: saving images

2012-07-21 Thread Nick Zitzmann
On Jul 21, 2012, at 10:03 AM, H. Miersch wrote: > i just started a new ios project where i want to download images using > NSimage's initwithcontentsofURL: method. > now i also want to write those images to permanent storage, but how do i do > that? You could always download the data given th