Thanks Micha
De: Michael Schmiedgen
Enviado: 3/25/2014 3:38 AM
Para: Oscar González; webobjects-dev@lists.apple.com
Asunto: Re: Saving NSDictionary to DB
On 24.03.2014 22:56, Oscar González wrote:
> Hi all,I need to save a NSDictionary to the DB and then recov
On 24.03.2014 22:56, Oscar González wrote:
Hi all,I need to save a NSDictionary to the DB and then recovery it back. Is
there some formatter to do this?
You can use 'blobDictionary' or 'stringDictionary' prototype. Everything
should be handled automatically. Be aware that you also need
ERAttri
Fix:
> So when you need to deal with an immutable version, do it with
> mutableDictionary().
So when you need to deal with a MUTABLE version, do it with mutableDictionary().
jfv ___
Do not post admin requests to the list. They will be ignored.
Webobje
Here is how I implemented such attribute:
{
adaptorValueConversionClassName =
"er.extensions.foundation.ERXPropertyListSerialization";
adaptorValueConversionMethodName = jsonStringFromPropertyList;
allowsNull = Y;
columnName = "dictionary"
O S.A.
> Subject: Re: Saving NSDictionary to DB
> From: jtay...@oeinc.com
> Date: Mon, 24 Mar 2014 18:04:04 -0400
> CC: webobjects-dev@lists.apple.com
> To: racso...@hotmail.com
>
>
> you can serialize it into a property list string and back.
>
> there may even be a “tra
Chuck - stop typing so fast… :)
To add to Chuck’s response, you can serialize to XML:
String xml = NSPropertyListSerialization.xmlStringFromPropertyList(dictionary,
false);
but then there ARE Wonder additions:
NSData info =
er.extensions.foundation.ERXPropertyListSerialization.dataFromPropert
you can serialize it into a property list string and back.
there may even be a “transformable” on the modeler, I can’t recall but likely
you can write a transformer to read and write to and from a string which would
work just fine I think.
make sense?
On Mar 24, 2014, at 5:56 PM, Oscar Gonz
Thanks Chuck,I'll see that class.
Saludos,
Oscar González PérezTECH in AGRO S.A.
From: ch...@global-village.net
To: racso...@hotmail.com; webobjects-dev@lists.apple.com
Subject: Re: Saving NSDictionary to DB
Date: Mon, 24 Mar 2014 22:00:05 +
See NSPropertyListSerialization.
See NSPropertyListSerialization. There should be examples in Wonder and maybe
support for using it.
Chuck
On 2014-03-24, 2:56 PM, "Oscar González" wrote:
Hi all,
I need to save a NSDictionary to the DB and then recovery it back.
Is there some formatter to do this?
Saludos,
Oscar González P
Hi all,I need to save a NSDictionary to the DB and then recovery it back. Is
there some formatter to do this?
Saludos,
Oscar González PérezTECH in AGRO S.A. ___
Do not post admin requests to the list. They will be ign
10 matches
Mail list logo