ticket = [service fetchEntryByInsertingEntry:entry forFeedURL:url
delegate:self didFinishSelector:@selector
(uploadTicket:finishedWithEntry:error:)];
Then, to prevent the thread to exit promptly, I added the code like
the following.
do
{
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:
[NSDate distantFuture]];
}
while (shouldWait);
On Mac OS10.5 it works just right -- Progress callbacks and didFinish
callback are called properly. On Mac OS10.4, progress callbacks are
repeatedly called as expected but at the time when didFinish callback
should be called, the app crashes with the report like the following:
Thread 8 Crashed:
0 com.apple.Foundation 0x9282ce13 _NSRaiseError + 227
1 com.apple.Foundation 0x92853c57 +[NSException
raise:format:] + 57
2 com.apple.Foundation 0x928dbfe2 -[NSObject
doesNotRecognizeSelector:] + 123
3 com.apple.Foundation 0x927ffd1b -[NSObject
(NSForwardInvocation) forward::] + 184
4 libobjc.A.dylib 0x90a5cba1 _objc_msgForward + 49
5 com.google.GDataFramework 0x0102427f
AssertSelectorNilOrImplementedWithArguments + 64031
6 com.google.GDataFramework 0x010154db
AssertSelectorNilOrImplementedWithArguments + 3195
7 com.apple.Foundation 0x92860794 -[NSURLConnection
(NSURLConnectionInternal) _sendDidFinishLoadingCallback] + 176
8 com.apple.Foundation 0x9285e839 -[NSURLConnection
(NSURLConnectionInternal) _sendCallbacks] + 748
9 com.apple.Foundation 0x9285e4d6 _sendCallbacks + 201
10 com.apple.CoreFoundation 0x9082cf06 CFRunLoopRunSpecific +
1213
11 com.apple.CoreFoundation 0x9082ca42 CFRunLoopRunInMode + 61
12 com.apple.Foundation 0x9282f6ca -[NSRunLoop
runMode:beforeDate:] + 182
Any ideas about the possible cause of the problem? Any comments or
advice would be a great help for me.
Thanks,
ichiro.