[MonoTouch] custom object serialization from monotouch using NSUserDefaults?

Brent Schooley schooleybrent at gmail.com
Mon Oct 5 11:50:32 EDT 2009


Chris' question is still valid. XML serialization to an arbitrary XML  
file in the filesystem will work in the general case.  The problem is,  
if your app wants to use the Settings application, you will still need  
to access NSUserDefaults since that's where those settings get stored  
if I remember correctly.  I haven't tried it yet on MonoTouch so I  
can't provide a quick answer.

- Brent

On Oct 5, 2009, at 11:40 AM, Simon Guindon <sguindon at truecontext.com>  
wrote:

> I am serializing to the file system as a .xml file and reloading  
> them via deserialization.
>
>
>
> Thanks!
>
> Simon
>
>
>
> From: Chris Sells [mailto:csells at sellsbrothers.com]
> Sent: Monday, October 05, 2009 10:36 AM
> To: Simon Guindon; monotouch at lists.ximian.com
> Subject: RE: [MonoTouch] custom object serialization from monotouch  
> using NSUserDefaults?
>
>
>
> Where are you serializing to? User defaults?
>
>
>
> From: Simon Guindon [mailto:sguindon at truecontext.com]
> Sent: Monday, October 05, 2009 7:33 AM
> To: Chris Sells; monotouch at lists.ximian.com
> Subject: RE: [MonoTouch] custom object serialization from monotouch  
> using NSUserDefaults?
>
>
>
> I’m using XML serialization of object graphs. You don’t need objc  
> API’s to achieve this. Just plain old .NET J
>
>
>
> Thanks!
>
> Simon
>
>
>
> From: monotouch-bounces at lists.ximian.com [mailto:monotouch- 
> bounces at lists.ximian.com] On Behalf Of Chris Sells
> Sent: Monday, October 05, 2009 1:32 AM
> To: monotouch at lists.ximian.com
> Subject: [MonoTouch] custom object serialization from monotouch  
> using NSUserDefaults?
>
>
>
> Is it possible? NSCoder doesn’t seem to have the methods I except. W 
> hat are folks doing here? I wrote my own little serializer, but it’s 
>  prefer to use the real one.
>
>
>
> Or, is there another way to get custom object serialization into  
> user settings besides NSUserDefaults? I’m open.
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20091005/c714e5d1/attachment-0001.html 


More information about the MonoTouch mailing list