• 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 Anomaly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Anomaly?


  • Subject: Re: Core Data Anomaly?
  • From: "Henry McGilton (Boulevardier)" <email@hidden>
  • Date: Wed, 23 Dec 2009 20:25:27 -0800

On Dec 23, 2009, at 7:41 PM, Richard Somers wrote:

> In my application when I do the following something strange happens.
>
> Add a managed object to the store, save the file, then save the file as another name.
>
> Upon saving the file with another name, core data will create and then destroy some kind of transitory shadow object of the same kind as the one in the store.
>
> Is this normal?



Just a wild guess --- are you saving atomically ?    When writing NSData objects, as one
example, you can write to file atomically, in which case the object is written to a backup file
which is renamed if the write succeeds.    The idea is that the write either succeeds or fails,
but nothing in between that would leave a corrupted file . . .

    Cheers,
        . . . . . . . .    Henry


=================================================
iPhone App Development and Developer Education . . .
        Visit  www.nonatomic-retain.com

Mac OSX Application Development, Plus a Great Deal More . . .
        Visit  www.trilithon.com

_______________________________________________

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: Core Data Anomaly?
      • From: Richard Somers <email@hidden>
References: 
 >Core Data Anomaly? (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: Can -[NSTableColumn width] return Not a Number (nan)?
  • Next by Date: NSCollectionView NSArrayController bindings from outer hell
  • Previous by thread: Core Data Anomaly?
  • Next by thread: Re: Core Data Anomaly?
  • Index(es):
    • Date
    • Thread