Saving data as NSData using NSUserDefaults

2009-11-21 Thread Tharindu Madushanka
Hi, I saw a method to retreive data as NSData using NSUserDefaults class, but it seems like there is no method to save NSData. no method like setData: forKey: Is it possible to save somethings as for example image as NSData in NSUserDefaults Thank you, Tharindu

Re: Saving data as NSData using NSUserDefaults

2009-11-21 Thread Fritz Anderson
On 21 Nov 2009, at 8:32 AM, Tharindu Madushanka wrote: I saw a method to retreive data as NSData using NSUserDefaults class, but it seems like there is no method to save NSData. no method like setData: forKey: Is it possible to save somethings as for example image as NSData in

Re: Saving data as NSData using NSUserDefaults

2009-11-21 Thread Tharindu Madushanka
yep got the idea now, it seems setObject: is the one to use for all the object types. But there are multiple retrieve methods to make work easier. Thanks :) On Sat, Nov 21, 2009 at 8:10 PM, Fritz Anderson fri...@manoverboard.orgwrote: On 21 Nov 2009, at 8:32 AM, Tharindu Madushanka wrote: I