From: Michael J. Rubinsky Date: Tue, 1 Sep 2009 04:37:33 +0000 (-0400) Subject: Put this code back on it's own thread so it doesn't block Aperture's UI X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c466256f15497c685e727f64248d104c44d1f7bb;p=horde.git Put this code back on it's own thread so it doesn't block Aperture's UI --- 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]; }