That particular function is trying to CFRetain the result of -identifier on your store. If you've overridden it, make sure it never returns nil and it always returns the same UUID at least until someone calls -setIdentifier. The UUID should also be set in the store's metadata with the key NSStoreUUIDKey. If you're not preserving the store metadata, including any keys Core Data might set, then you'll have these kinds of problems.
- Ben > I think I've narrowed it down a bit - it is now to the stage where the crash > is at: > > #0 0x00007fff80ddf788 in CFRetain () > #1 0x00007fff874ed6ad in +[NSTemporaryObjectID classForStore:] () > #2 0x00007fff874ed352 in _PFFastStoreTemporaryIDClass () > #3 0x00007fff874ed2f8 in -[NSTemporaryObjectID _setPersistentStore:] () > #4 0x00007fff87507b12 in -[NSPersistentStoreCoordinator(_NSInternalMethods) > _assignObject:toPersistentStore:forConfiguration:] () > #5 0x00007fff8752b323 in -[NSPersistentStoreCoordinator(_NSInternalMethods) > _retainedAllMigratedObjectsInStore:toStore:] () > #6 0x00007fff87528e54 in -[NSPersistentStoreCoordinator > migratePersistentStore:toURL:options:withType:error:] () > #7 0x00007fff8654e7e2 in -[NSPersistentDocument > writeToURL:ofType:forSaveOperation:originalContentsURL:error:] () > #8 0x0000000100034775 in -[NMPersistentDocument > writeToURL:ofType:forSaveOperation:originalContentsURL:error:] > (self=0x103e4ede0, _cmd=0x7fff867f759e, absoluteURL=0x119ee6dd0, > typeName=0x10081aa30, saveOperation=1, > absoluteOriginalContentsURL=0x1161bd310, error=0x7fff5fbfde78) at > /Users/gideon/Development/svn/trunk/mac/Source/NMPersistentDocument.m:417 > #9 0x00007fff864240b2 in -[NSDocument > _writeSafelyToURL:ofType:forSaveOperation:error:] () > #10 0x00007fff864234b0 in -[NSDocument > writeSafelyToURL:ofType:forSaveOperation:error:] () > #11 0x00007fff8654d8f1 in -[NSPersistentDocument > writeSafelyToURL:ofType:forSaveOperation:error:] () _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com