• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Retrieving an EO from a serialized Propertylist in database table textfield
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Retrieving an EO from a serialized Propertylist in database table textfield


  • Subject: Retrieving an EO from a serialized Propertylist in database table textfield
  • From: Johan Henselmans <email@hidden>
  • Date: Wed, 24 Feb 2010 11:14:01 +0100

I am trying to get a NSarray of NSDictionaries with Objects from one application to another application via a database text field.

My idea was that I would first serialize the stuff on one side:

setPlistTextField ( NSPropertyListSerialization.stringFromPropertyList( cart() ) )

next, get it out on the other side:

itemsList= (NSArray) NSPropertyListSerialization.propertyListFromString( plistTextField() )

And then from the NSDictionary retrieve the EO Objects with some EOUtilities method.

I first thought that

Product ciProduct = (Product) EOUtilities.localInstanceOfObject( session.myEc(), (nl.netsense.theater.Product) tmpCartItem.objectForKey("product") )

would do the trick, but that is not the case (I can imagine that the stuff I am sending it is not really a EnterpriseObject.

The NSDictionary that I am getting contains stuff like this:

{performance = "<nl.netsense.theater.Performance pk:"994">"; total = "11.0"; qty = "1"; product = "<nl.netsense.theater.Product pk:"136">"; }

Which EOUtilities method would be able to retrieve the EO again from a dictionary value like:

performance = "<nl.netsense.theater.Performance pk:"994">"

?


Johan Henselmans
email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Antw: Retrieving an EO from a serialized Propertylist in database tabletextfield
      • From: "Andri vonAllmen" <email@hidden>
    • Re: Retrieving an EO from a serialized Propertylist in database table textfield
      • From: Andrew Lindesay <email@hidden>
  • Prev by Date: Re: Multiple File upload read
  • Next by Date: Re: Retrieving an EO from a serialized Propertylist in database table textfield
  • Previous by thread: Re: Full URL on dev
  • Next by thread: Re: Retrieving an EO from a serialized Propertylist in database table textfield
  • Index(es):
    • Date
    • Thread