• 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: best practices when deleting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: best practices when deleting


  • Subject: Re: best practices when deleting
  • From: Robert Walker <email@hidden>
  • Date: Tue, 11 Apr 2006 15:02:43 -0400

Bill,

It sounds to me like you may be holding onto (and attempting to use) references to deleted objects, either in a display group or other array containing references to your EO's. It's hard to say without more information like what exceptions are getting thrown, etc.

It is my understanding that using ec.refreshAllObjects() should be used sparingly. If you're having to use this method a lot then it's likely you are doing something else wrong. There may be a better technique to accomplish what you really want.

Hopefully, Chuck Hill will chime in and give you the real lowdown on this one. Also if you don't have his book, you should think about buying it. The book contains the most in-depth explanation of this stuff that I've seen to date.

On Apr 11, 2006, at 2:19 PM, WebObjects wrote:

WOCrew,

I’m getting ‘safe’ results when using “ec.refreshAllObjects();” prior to
selecting and deleting objects from my database/entities. Without it I get
all sorts of problems with context(s) not being in sync.


Is there another or additional safe practice that I should be observing, to
ensure newly added or updated records are free for deletion?


Much appreciation,

-Bill

-- Robert Walker 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


References: 
 >best practices when deleting (From: WebObjects <email@hidden>)

  • Prev by Date: Re: best practices when deleting
  • Next by Date: Help with Qualifier and NSKeyValueCoding.NullValue
  • Previous by thread: Re: best practices when deleting
  • Next by thread: Error Message:
  • Index(es):
    • Date
    • Thread