Re: WO 5.4.2 Prototypes and Manual Model Assembly
Re: WO 5.4.2 Prototypes and Manual Model Assembly
- Subject: Re: WO 5.4.2 Prototypes and Manual Model Assembly
- From: Kieran Kelleher <email@hidden>
- Date: Thu, 7 Aug 2008 09:32:34 -0400
Hi Andrew,
I have not done what you are doing, but if I was going to do it, I
would think I might get some good code examples/ideas from the
ERXModelGroup class in project Wonder since it does "prototype
flattening" and a bunch of other useful munging trickery.
HTH, Kieran
On Aug 6, 2008, at 9:11 PM, Andrew Lindesay wrote:
Hello;
I am cloning and modifying the model in the application constructor
to get a read-only model. This worked very well until I started to
use WO 5.4.2 prototypes. Once I started to use prototypes, the
prototypes' values are not being loaded in as the model is
constructed.
EOEntity targetEntity = new EOEntity(entityPList,targetModel);
targetModel.addEntity(targetEntity);
...
targetEntity.awakeWithPropertyList(targetEntityPList);
...
EOModelGroup.defaultGroup().addModel(targetModel);
...
NSNotificationCenter
.defaultCenter().postNotification(EOModel.EntityLoadedNotification,
targetEntity);
Can anybody suggest a means of working with the prototypes with in-
memory model assembly?
cheers.
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
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
_______________________________________________
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