[baseten-users] CopyWithZone

Michael Ruepp michael at ruepp.at
Wed Dec 2 23:52:20 EET 2009


Hi Tuuka,

how would I then copy an object and its related objects on a best way?

And, how can I work with XML Data types? - I would have returned XML Data as NSXMLDocument instead of NSData. And how can I insert XML? There is no XML Data Type in the Cora Data xcdatamodel.

Thanks, Mike

On 01.12.2009, at 23:55, Tuukka Norri wrote:

> Hi!
> 
> Michael Ruepp kirjoitti 1.12.2009 kello 17.03:
>> how is copyWithZone implemented? Is it a deep copy with the relation object tree and all values?
> -[BXDatabaseObject copyWithZone:] just retains the object. This makes it easier to update the objects when the corresponding rows change in the database.
> 
>> And, btw, when I call faultKey:nil on a DB object after I change a property, will it be inserted before?
> Yes. -faultKey: only affects the object's cache.
> 
> -- 
> Best regards,
> Tuukka Norri
> MK&C
> 
> 
> 
> _______________________________________________
> baseten-users mailing list
> baseten-users at lists.basetenframework.org
> http://lists.basetenframework.org/mailman/listinfo/baseten-users


_________________
michael ruepp
michael at ruepp.at
fon +41 76 593 04 49
skype michaelruepp

CONFIDENTIALITY NOTICE 
This message (including any attachments transmitted with it) contains confidential information and is intended only for the individual named herein. If you are not the herein named addressee you should not disseminate, distribute, copy or otherwise make use of this message. Please notify the sender immediately by e-mail if you have received this message by mistake, and delete it from your systems.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basetenframework.org/pipermail/baseten-users/attachments/20091202/5f8c7279/attachment.htm>


More information about the baseten-users mailing list