• 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: Core Data Sequence Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Sequence Problem


  • Subject: Re: Core Data Sequence Problem
  • From: Dado Colussi <email@hidden>
  • Date: Thu, 21 Oct 2010 13:30:59 -0500

>
>    1. User removes the managed object from the existing document (using
> array controller), presses the close window button, changes are not saved.

    2. Managed object is removed from the managed object context by the
> frameworks and is no longer reachable by any means that I am aware of.
>


You should eliminate the dependency to the graphics context.

As a quick fix, you could add -delete method in your managed object class,
and make it remove itself from the context. When user removes an object,
invoke the -delete method, and you have an opportunity to do your cleanup.

/Dado
_______________________________________________

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

References: 
 >Core Data Sequence Problem (From: Richard Somers <email@hidden>)

  • Prev by Date: Custom drawing in NSTokenField or replacement?
  • Next by Date: kCFStreamPropertyFTPFileTransferOffset and Resuming FTP uploads
  • Previous by thread: Core Data Sequence Problem
  • Next by thread: MPMoviePlayerViewController orientation
  • Index(es):
    • Date
    • Thread