Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Temporary fix for issue #31 (OS X Lion crashes) #33

Open
wants to merge 1 commit into from

3 participants

@pypt

Temporary fix for issue #31 (OS X Lion crashes); run the searcher on the main thread (apparently, Core Data is no longer happy with its separate thread on 10.7)

@pypt pypt Temporary fix for issue #31 (OS X Lion crashes); run the searcher on …
…the main thread (apparently, Core Data is no longer happy with its separate thread on 10.7)
b63f019
@fileability
Owner

Interesting.

I think the issue is that we need to set a NSManagedObjectContextConcurrencyType for the background managed object context.

@cgrushko

Works good. Shame it wasn't accepted, or at least compiled into the distributed binaries (which are useless, with OS X 10.7.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 13, 2011
  1. @pypt

    Temporary fix for issue #31 (OS X Lion crashes); run the searcher on …

    pypt authored
    …the main thread (apparently, Core Data is no longer happy with its separate thread on 10.7)
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  IGKApplicationDelegate.mm
View
2  IGKApplicationDelegate.mm
@@ -463,7 +463,7 @@ - (NSManagedObjectContext *)backgroundManagedObjectContext {
- (dispatch_queue_t)backgroundQueue
{
if (backgroundQueue == NULL)
- backgroundQueue = dispatch_queue_create(NULL, NULL);
+ backgroundQueue = dispatch_get_main_queue();
return backgroundQueue;
}
Something went wrong with that request. Please try again.