Re: CFHTTP functions (the CallBack funtion is never called...)
Re: CFHTTP functions (the CallBack funtion is never called...)
- Subject: Re: CFHTTP functions (the CallBack funtion is never called...)
- From: Frederick Cheung <email@hidden>
- Date: Tue, 7 Dec 2004 23:25:33 +0000
On 7 Dec 2004, at 20:53, Trygve Inda wrote:
Message: 2
Date: Fri, 26 Nov 2004 17:56:54 +0800
From: "Alex Guo" <email@hidden>
Subject: CFHTTP functions (the CallBack funtion is never called...)
To: "MacNewsGroup" <email@hidden>
Message-ID: <017801c4d39e$4904c780$8900a8c0@alexguo>
Content-Type: text/plain; charset="gb2312"
Hi, EveryBody,
I write a demo using CFHTTP functions, but seems that the CallBack
function is never called (sigh...). AnyBody can help me? thanks a
lot.
The followings are the code snippet:
You need to actually run the runloop (CFRunLoopRun())
Fred
Really?
I have similar code and never call CFRunLoopRun. I don't believe
Apple's
CFNetworkHTTPDownload example calls CFRunLoopRun either.
Well I lie slightly, someone has to call CFRunLoopRun(), it doesn't
have to be you. The CFNetworkHTTPDownload example calls
RunApplicationEventLoop which will do that for you, as would calling
WaitNextEvent. If you look back at the OP's code he wasn't doing any of
those.
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden