• 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
Re: EOs and NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOs and NSData


  • Subject: Re: EOs and NSData
  • From: Ricardo Strausz <email@hidden>
  • Date: Fri, 6 Jun 2003 13:12:38 -0500

On miircoles, juni 4, 2003, at 20:48 America/Mexico_City, Art Isbell wrote:

On Wednesday, June 4, 2003, at 02:03  PM, Ricardo Strausz wrote:

Is there a simple way to encapsulate all instance variables of an eo into a single nsdata object?

By default, EO classes derive from EOGenericRecord whose instance variables are private, including the dictionary that stores property values. EOGenericRecord's snapshot() method will return a dictionary of EO property values which could be serialized into an NSData object by NSPropertyListSerialization.dataFromPropertyList(). Is this what you mean?

I am not sure yet... I want to use NSDocument inside Cocoa/EO. The natural way to "load" an nsdoc, is by passing to it an nsdata and a type. So I want to init the doc with an eo, but I have to be able to "read-back" the variables of the eo from the nsdata.


The hint sounds good to me, ...then I will have to "deserialize" right?

Other cuestion (i'd never used snapshot); does this dictionary includes ALL variables? I mean, do I nead to mark the atribute with the "dimond" in EOModeler in order to see it?

Thanks in advance!


Aloha, Art

Dino http://homepage.mac.com/strausz _______________________________________________ webobjects-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev Do not post admin requests to the list. They will be ignored.

References: 
 >Re: EOs and NSData (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: Picking up .wo changes
  • Next by Date: Re: Picking up .wo changes
  • Previous by thread: Re: EOs and NSData
  • Next by thread: I think I'm going KKKAAAARRRAAAAZZZZYYY
  • Index(es):
    • Date
    • Thread