From c466256f15497c685e727f64248d104c44d1f7bb Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 1 Sep 2009 00:37:33 -0400 Subject: [PATCH] Put this code back on it's own thread so it doesn't block Aperture's UI --- ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m index 074ed92e2..72c6ee888 100644 --- a/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m +++ b/ApertureToAnselExportPlugin/ApertureToAnselExportPlugin.m @@ -357,8 +357,8 @@ NSString * const TURAnselServerPasswordKey = @"password"; // and update the UI. - (void)TURAnselDidInitialize { + // Release now that the callback has completed. [self release]; - NSLog(@"TURAnselDidInitialize"); [galleryCombo reloadData]; [galleryCombo setEnabled: true]; [mNewGalleryButton setEnabled: true]; @@ -638,11 +638,10 @@ NSString * const TURAnselServerPasswordKey = @"password"; [galleryCombo setDataSource:_anselController]; [galleryCombo setDelegate:self]; [spinner startAnimation:self]; - [_anselController connect]; // Detach to a new thread and do the actual login/retrieval of gallery list -// [NSApplication detachDrawingThread: @selector(connect) -// toTarget: self -// withObject: nil]; + [NSApplication detachDrawingThread: @selector(connect) + toTarget: self + withObject: nil]; [p release]; [pool drain]; } -- 2.11.0