• 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: Remove a EOEnterpriseObject from an editing context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove a EOEnterpriseObject from an editing context


  • Subject: Re: Remove a EOEnterpriseObject from an editing context
  • From: Ken Anderson <email@hidden>
  • Date: Mon, 24 Jul 2006 08:37:03 -0400

Edgar,

If you do ec.deleteObject(obj) and it has never been saved, it will just be removed.

Care to share why you want to process this way?

Ken

On Jul 24, 2006, at 7:43 AM, Edgar Ra. Klein wrote:

Hi,

I'm writing an application to import data from files and have a problem inserting an EOEnterpriseObject from an unsaved editing context into another one. More precisely, I have an EOEnterpriseObject inserted into an editing context ec1. After some processing this object isn't complete to be saved, hence I wanted to remove it from ec1, insert it into another editing context ec2, and try to update the reference later.

I already tried to remove the object from ec1 by using the following code:
- ec1.forgetObject(eoObject); (I know, I should not invoke this method, but this approach doesn't work anyway)
The problem here is that there is still a null object in the editing context ec1.


Is there a possibility to unregister a newly generated object (not saved in the database) from its current editing context (this editing context should be empty, if this object was the only object) and to insert it into another one?

Thanx,
Edgar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com


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
  • Follow-Ups:
    • Re: Remove a EOEnterpriseObject from an editing context
      • From: Robert Walker <email@hidden>
References: 
 >Remove a EOEnterpriseObject from an editing context (From: "Edgar Ra. Klein" <email@hidden>)

  • Prev by Date: Remove a EOEnterpriseObject from an editing context
  • Next by Date: Re: Re: WWDC WO Meet Up List
  • Previous by thread: Remove a EOEnterpriseObject from an editing context
  • Next by thread: Re: Remove a EOEnterpriseObject from an editing context
  • Index(es):
    • Date
    • Thread