2010-10-12 メインスレッドか判別する。 Objective-C if ([[NSThread currentThread] isMainThread]) { NSLog(@"main"); } else { NSLog(@"not main"); }