]> git.sesse.net Git - vlc/commitdiff
macosx: As feepk pointed, performInBackground is too recent for us, and use nil inste...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 2 Aug 2008 17:15:34 +0000 (19:15 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 2 Aug 2008 17:16:48 +0000 (19:16 +0200)
modules/gui/macosx/intf.m

index 2c30f12786a1e589c6a9f6ea7cf4cc09f78b0418..8e9ca2df37b5a87fe2d5c43e82bf916e11e7ef6c 100644 (file)
@@ -854,14 +854,14 @@ static NSString * VLCToolbarMediaControl     = @"VLCToolbarMediaControl";
         nib_update_loaded = [NSBundle loadNibNamed:@"Update" owner:self];
 
     if([o_update shouldCheckForUpdate])
-        [NSThread detachNewThreadSelector:@selector(checkForUpdate) toTarget:o_update withObject:NULL];
+        [NSThread detachNewThreadSelector:@selector(checkForUpdate) toTarget:o_update withObject:nil];
 #endif
 
     /* Handle sleep notification */
     [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(computerWillSleep:)
            name:NSWorkspaceWillSleepNotification object:nil];
 
-    [self performSelectorInBackground:@selector(lookForCrashLog) withObject:NULL];
+    [NSThread detachNewThreadSelector:@selector(lookForCrashLog) toTarget:self withObject:nil];
 }
 
 /* Listen to the remote in exclusive mode, only when VLC is the active