3
나는 GCD에 대한 기사를 읽고, 예를 들어이있다 :Autoreleasepool 및 dispatch_async
dispatch_queue_t bgQueue = myQueue;
dispatch_async(dispatch_get_main_queue(), ^{
NSString *stringValue = [[[textField stringValue] copy] autorelease];
dispatch_async(bgQueue, ^{
// use stringValue in the background now
});
});
전합니다 (autoreleasepool에 호출됩니다) 클릭 핸들러의 방법은, 내가 있기 때문에, stringValue을 손실 것을 배치하면 autoreleasepool은 클릭 이벤트 후 파괴됩니까?
이제는 의미가 있습니다, 감사합니다. – INs