Re: Copying An EO Values
Re: Copying An EO Values
- Subject: Re: Copying An EO Values
- From: Owen McKerrow <email@hidden>
- Date: Mon, 4 Aug 2008 08:55:02 +1000
Hey,
Ondra's suggestion is the a good idea. Or you could have a look at
Chapter 9 of Chucks "Practical WebObjects" book, which is a whole
chapter on this very topic :)
Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
'The test of a first-rate intelligence is the ability to hold two
opposed ideas in the mind at the same time and still be able to
function.'
-F.Scott Fitzgerald,
On 04/08/2008, at 5:52 AM, Gino Pacitti wrote:
Well what I mean is that instead of
neweo.setValue(existingeo.someValue());
for every value in the existingeo which I want to transpose to the
neweo.
Is there a operation like -
neweo = existineo.clone();
So all the values in the new eo are the same as existingeo but
obvioulsy with a new PK..
GIno
On 3 Aug 2008, at 20:41, Ondřej Čada wrote:
Gino,
On Aug 3, 2008, at 9:27 PM, Gino Pacitti wrote:
Has anyone had experience copying an EO values fetched and in and
EditingContext to a new EO in an atomic action?
"Atomic" in what sense?
Myself, I've always combined valuesForKeys and
takeValuesFromDictionary, but YMMV :)
Best,
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
-----------------------------------------------------
Gino L. Pacitti Base Enterprise UK
email: email@hidden
phone: sales: 0845 094 9784
mob: 07980 851 953
Aol: kris121
Msn: email@hidden
Skype: ginkris
Mac.com: email@hidden
http://www.base-enterprise.co.uk
mail: Base Enterprise
PO BOX 674
East Grinstead
West Sussex
RH19 3ZG
Base Enterprise LTD
Company Number 04339224
Registered in England & Wales
Registered Member of the UK Web Design Association.
Accredited by Business Link and a member of the FSB.
Web Design, coding and information architect
Web Objects and Database Developer
HTML, XML, Javascript and WAP technologies.
-----------------------------------------------------
This email and any attachments is confidential and may be legally
privileged and protected from disclosure. It is intended solely for
the use of the individual or entity to whom it is addressed and
others authorized to receive it.
If you are not the intended recipient of this e-mail of any parts of
it please telephone +44 845 094 9784 immediately upon receipt
or contact email@hidden
No other person is authorized to copy, forward or disclose,
distribute or retain this e-mail in any form.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40uow.edu.au
This email sent to 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