Significado del símbolo ^ en el objetivo C [duplicado]
Posible duplicado:
Caret en el objetivo C
¿Qué significa esta sintaxis ^ en Objective-C?
Estoy cansado de buscar el significado del símbolo ^ en el Objetivo C. Lo he visto en muchos proyectos, especialmente en tareas de ejecución en segundo plano. Pondré un enlacehttp: //developer.apple.com/library/ios/#samplecode/StitchedStreamPlayer/Introduction/Intro.html#//apple_ref/doc/uid/DTS4001009 y enMyStreamingMovieViewController.m
puedes encontrar lo siguiente dentro -(IBAction)endScrubbing:(id)sender method
.
timeObserver = [[player addPeriodicTimeObserverForInterval:CMTimeMakeWithSeconds(tolerance, NSEC_PER_SEC) queue:dispatch_get_main_queue() usingBlock:
^(CMTime time)
{
[self syncScrubber];
}] retain];
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
UIApplication* app = [UIApplication sharedApplication];
bgTask = [app beginBackgroundTaskWithExpirationHandler:^{
// Clean up any unfinished task business by marking where you.
// stopped or ending the task outright.
[app endBackgroundTask:bgTask];
bgTask = UIBackgroundTaskInvalid;
}];
// Start the long-running task and return immediately.
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
// Do the work associated with the task, preferably in chunks.
[app endBackgroundTask:bgTask];
bgTask = UIBackgroundTaskInvalid;
});
}
Por favor, hágame saber la respuesta.