• 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: EOF transient properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOF transient properties


  • Subject: Re: EOF transient properties
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 27 Jul 2009 09:37:23 -0700


On Jul 27, 2009, at 6:06 AM, Ken Anderson wrote:

Chuck,

If the faults were created in other ways besides manually in code, this wouldn't work, right? Or am I missing something...

You are not missing anything. This would handle only what Paulo asked: copying then values when localInstance... is called on an EO.


Chuck



Ken

On Jul 26, 2009, at 7:07 PM, Chuck Hill wrote:

Hi Paulo,


On Jul 26, 2009, at 7:00 AM, Paulo F. Andrade wrote:

Does EOF have any type of transient properties similar to what Core Data has?

If not imagine this simple scenario.

1 - You have an eo with a couple of ivars (ie, they are nor EO properties thus not saved to disk, EOF has no clue about them).
2 - You try to pass this EO to aother EC via EOUtilities.localInstanceOfObject
3 - What happens is that the new EO does not have the ivars from the initial EO.


Can one, at some point during the localInstanceOfObject force these ivars to be copied to the new EO?


Which localInstanceOfObject? The only implemented in EOUtilities just grabs the EOGlobalID from the EO and uses it to create a fault in the second EC. Some veogen templates create a method like:

public PriorityList localInstance(EOEditingContext editingContext) {
return (PriorityList)EOUtilities.localInstanceOfObject(editingContext, this);
}


You could override that and copy the transient properties. Or you could get fancy and be generic and use the RTTI to find and copy any ivars.


Chuck

--
Chuck Hill             Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars

_______________________________________________
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



-- Chuck Hill Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars

_______________________________________________
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


References: 
 >EOF transient properties (From: "Paulo F. Andrade" <email@hidden>)
 >Re: EOF transient properties (From: Chuck Hill <email@hidden>)
 >Re: EOF transient properties (From: Ken Anderson <email@hidden>)

  • Prev by Date: [MEETING REMINDER] WO-Nova meeting TOMORROW 7/28/09
  • Next by Date: Re: Chuck Hill's quite good Practices, WOWODC 08
  • Previous by thread: Re: EOF transient properties
  • Next by thread: 400 Error WebObjects
  • Index(es):
    • Date
    • Thread