• 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: Removing Object form ArrayController without managedObjectContext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing Object form ArrayController without managedObjectContext


  • Subject: Re: Removing Object form ArrayController without managedObjectContext
  • From: Keary Suska <email@hidden>
  • Date: Mon, 29 Mar 2010 14:22:20 -0600

On Mar 29, 2010, at 1:43 PM, Gustavo Pizano wrote:

> My guess was that when removing the objects form the array controller, these were being removed form the MOC, and therefore I couldn't see them in the consultation mode, only after restarting the app when the MOC fetch again the data.

An array controller won't remove MO's unless you have told it to. Check the setting in IB, or set it explicitly in code.

> Now I need to be able to clean the table after saving, otherwise I can't create more items unless I restart the app, or if I clean the table I must restart the app in order to see the newly created invoice's details.

This is a sign of poor design. The items array controller should use the invoice relationship as its content and it will take care of itself.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Removing Object form ArrayController without managedObjectContext
      • From: Gustavo Pizano <email@hidden>
    • Re: Removing Object form ArrayController without managedObjectContext
      • From: Quincey Morris <email@hidden>
References: 
 >Removing Object form ArrayController without managedObjectContext (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: "-forwardInvocation:" like NSInvocation creation
  • Next by Date: Re: How to catch modal window appearance?
  • Previous by thread: Removing Object form ArrayController without managedObjectContext
  • Next by thread: Re: Removing Object form ArrayController without managedObjectContext
  • Index(es):
    • Date
    • Thread