I've got a really simple application of core data. It's a document based 
application, but its not a NSPersistentDocument, because I have an opaque 
bundle/directory data format and the core data is only a tiny part of it.
Its hanging on the call to:

persistentStore = [persistentStoreCoordinator 
addPersistentStoreWithType:NSXMLStoreType configuration:nil URL:url options:nil 
error:&error];

with 100% CPU usage.

I did a sample in the activity monitor:

    1201 Thread_2503
      1201 start
        1201 main
          1201 NSApplicationMain
            1201 -[NSApplication run]
              1201 -[NSApplication sendEvent:]
                1201 -[NSApplication _handleKeyEquivalent:]
                  1201 -[NSMenu performKeyEquivalent:]
                    1201 -[NSCarbonMenuImpl 
performActionWithHighlightingForItemAtIndex:]
                      1201 -[NSMenu performActionForItemAtIndex:]
                        1201 -[NSApplication sendAction:to:from:]
                          1201 -[AutomatonAppDelegate openNotesWindow:]
                            1201 -[NSDocumentController(DocumentControllerUtil) 
openDocument:ofType:display:error:]
                              1201 -[NSDocumentController 
openDocumentWithContentsOfURL:display:error:]
                                1201 -[NSDocumentController 
makeDocumentWithContentsOfURL:ofType:error:]
                                  1201 -[NSDocument 
initWithContentsOfURL:ofType:error:]
                                    1201 -[NotesDocument 
readFromURL:ofType:error:]
                                      1201 -[NotesDocument managedObjectContext]
                                        1201 -[NotesDocument 
persistentStoreCoordinator]
                                          1201 -[NSPersistentStoreCoordinator 
addPersistentStoreWithType:configuration:URL:options:error:]
                                            1201 -[NSXMLObjectStore 
initWithPersistentStoreCoordinator:configurationName:URL:options:]
                                              1201 -[NSXMLDocument 
initWithContentsOfURL:options:error:]
                                                1201 +[NSURLConnection 
sendSynchronousRequest:returningResponse:error:]
                                                  1201 createCFRequest
                                                    1201 +[NSHTTPCookieStorage 
sharedHTTPCookieStorage]
                                                      1201 pthread_once
                                                        1201 
initSharedCookieManager
                                                          1201 
-[NSHTTPCookieStorage(NSInternal) _internalInit]
                                                            1201 
-[NSHTTPCookieStorageInternal init]
                                                              1201 
+[NSURLConnection(NSURLConnectionPrivate) resourceLoaderRunLoop]
                                                                1201 
pthread_once
                                                                  1201 
NSURLConnectionInit
                                                                    1201 
__semwait_signal
                                                                      1201 
__semwait_signal


Why on earth there would be mentions of HTTP and Cookies for a file:// URL has 
me puzzled. I'm also puzzled how my tiny bit of code, which is basically like 
the core data sample app, it just saves the managedObjectContext in saveToURL:.


      
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to