[vlc-devel] commit: macosx: As feepk pointed, performInBackground is too recent for us, and use nil instead of NULL. (Pierre d'Herbemont )

git version control git at videolan.org
Sat Aug 2 19:14:05 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Aug  2 19:15:34 2008 +0200| [a50254a4a7cb4a9c4a5999ca7d3c2c64411ff596] | committer: Pierre d'Herbemont 

macosx: As feepk pointed, performInBackground is too recent for us, and use nil instead of NULL.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a50254a4a7cb4a9c4a5999ca7d3c2c64411ff596
---

 modules/gui/macosx/intf.m |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 2c30f12..8e9ca2d 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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




More information about the vlc-devel mailing list