• 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: WO 5.4.2 Prototypes and Manual Model Assembly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO 5.4.2 Prototypes and Manual Model Assembly


  • Subject: Re: WO 5.4.2 Prototypes and Manual Model Assembly
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 7 Aug 2008 09:46:05 -0400

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.
Looks like this process is pretty different in 5.4 ... So EOAttribute has an _updateFromPrototype method you can call ... It appears that is called on setPrototype, but I'm guessing it's not in the model when that is called. It also appears that you can call EOAdaptor.assignExternalInfoForEntireModel(model), which (among some other things you'll have to verify as to whether or not they break things) appears to be the only place that externally calls _updateFromPrototype on all the attributes in the model. I'm not exactly sure how the model loading process works now in 5.4 -- it's something I'll have to dig around in to figure out better, but that might at least get things working for you in the meantime.

ms

_______________________________________________
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:
    • Re: WO 5.4.2 Prototypes and Manual Model Assembly
      • From: Mike Schrag <email@hidden>
References: 
 >WO 5.4.2 Prototypes and Manual Model Assembly (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: Re: WO 5.4.2 Prototypes and Manual Model Assembly
  • Next by Date: Re: WO 5.4.2 Prototypes and Manual Model Assembly
  • Previous by thread: Re: WO 5.4.2 Prototypes and Manual Model Assembly
  • Next by thread: Re: WO 5.4.2 Prototypes and Manual Model Assembly
  • Index(es):
    • Date
    • Thread