• 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: ClassCastException com.webobjects.eocontrol._EOWeakReference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ClassCastException com.webobjects.eocontrol._EOWeakReference


  • Subject: Re: ClassCastException com.webobjects.eocontrol._EOWeakReference
  • From: Art Isbell <email@hidden>
  • Date: Tue, 21 Jun 2005 14:15:02 -1000

If you haven't already done so, I suggest reading the best shared object documentation I've been able to find:

http://developer.apple.com/documentation/LegacyTechnologies/ WebObjects/WebObjects_4.5/System/Documentation/Developer/WebObjects/ DeltaDoc/EOF.html#CBGCHAIA

On Jun 21, 2005, at 1:12 PM, Brendan Duddridge wrote:

CategoryClickHistory newHistory = (CategoryClickHistory) EOUtilities.createAndInsertInstance(ec, "SSCategoryClickHistory");
newHistory.setCategory((Category) EOUtilities.localInstanceOfObject(ec, category));

1. Category is in the EOSharedEditingContext

"every standard editing context has access to the objects in a shared editing context as if the objects were local"


So you don't need to fault a shared object into a standard editing context using EOUtilities. localInstanceOfObject(); doing so will likely cause problems.

Aloha,
Art

_______________________________________________
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: 
 >ClassCastException com.webobjects.eocontrol._EOWeakReference (From: Brendan Duddridge <email@hidden>)

  • Prev by Date: Re: Would somebody post when Safe to Upgrade to WO 5.3
  • Next by Date: Re: Xcode 2.1 & WebObjects - Generate Java Files?
  • Previous by thread: ClassCastException com.webobjects.eocontrol._EOWeakReference
  • Next by thread: Would somebody post when Safe to Upgrade to WO 5.3
  • Index(es):
    • Date
    • Thread