• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: URLAccess kURLDisplayProgressFlag issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URLAccess kURLDisplayProgressFlag issue


  • Subject: Re: URLAccess kURLDisplayProgressFlag issue
  • From: Patrick Perroud <email@hidden>
  • Date: Fri, 2 May 2003 13:57:45 +0200

On vendredi, mai 2, 2003, at 12:52 Europe/Paris, Quinn wrote:

I was talking to the DTS engineer who supports URLAccess and he pointed out to me that this is not only a known issue but that it's clearly documented on our web site.

If you go to Apple's developer web site <http://www.apple.com/developer> and enter "kURLDisplayProgressFlag " into the search field, the second hit is for DTS Q&A "URLAccess and the Missing Progress Dialog"...

<http://developer.apple.com/qa/qa2001/qa1140.html>

...which says "starting with Mac OS X 10.2, you can use the kURLDisplayProgressFlag when calling URLOpen in order to display a progress dialog."
>

Well - I had read that one but it didn't help much at the time.

There is below my code modified that replaces URLDownload() by URLOpen() with kURLDisplayProgressFlag - we go thru without any error but it just returns immediatly to the caller: to me no download + no progress dialog is worse than download but no progress dialog.

There is the code: am I missing anything important?

status = URLNewReference((Ptr) urlstr,&urlref);

if(status == noErr) {
status = URLGetCurrentState(urlref,&urlstate);

if(urlstate == kURLNullState) {
status = URLOpen(urlref,&fsspec,kURLDisplayProgressFlag,NULL,0,NULL);

if(status != noErr) {
status = URLGetError(urlref,&urlerror);
}
}

URLDisposeReference(urlref);
}

This is about downloading a file and URLOpen() returns immediatly with a noErr status.

Best regards

Patrick Perroud

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Patrick Perroud SARL
41 rue Barrault 75013 Paris France
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tel./fax +33-1-45652500
mobile 06 89 99 57 09
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://www.pperroud.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
48: 49' N 2: 20' E
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: URLAccess kURLDisplayProgressFlag issue (From: Quinn <email@hidden>)

  • Prev by Date: Re: Obtaining Ethernet link speed
  • Next by Date: Re: OTListen in OS 9
  • Previous by thread: Re: URLAccess kURLDisplayProgressFlag issue
  • Next by thread: URLAccess kURLDisplayProgressFlag issue
  • Index(es):
    • Date
    • Thread