• 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
URLAccess kURLDisplayProgressFlag issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URLAccess kURLDisplayProgressFlag issue


  • Subject: URLAccess kURLDisplayProgressFlag issue
  • From: Patrick Perroud <email@hidden>
  • Date: Wed, 30 Apr 2003 10:40:12 +0200

Hello,

I am calling URLDownload() with kURLDisplayProgressFlag on both MacOS 9 and MacOS X. In the former case a modal progress indicator is displayed during data transfer. In the latter case the data transfer is still processed but nothing is displayed.

There is the code:

if(URLNewReference((Ptr) urlstr,&urlref) == noErr) {
status = URLGetCurrentState(urlref,&urlstate);
if(urlstate == kURLNullState) {
if(URLDownload(urlref,&fsspec,NULL,kURLDisplayProgressFlag,NULL,NULL) != noErr) {
status = URLGetError(urlref,&urlerror);
}
}
URLDisposeReference(urlref);
}

This code is called after the url string and the destination FSSpec were initialized - indeed.

The download is processed just fine but the progress dialog is never displayed on MacOS X like it is with MacOS 9.

The flag is documented in Carbon documentation at: http://developer.apple.com/techpubs/macosx/Carbon/networkcomm/ URLAccessManager/URL_Access_Manager/URL_Access_Manager/ constant_4.html#//apple_ref/doc/c_ref/kURLDisplayProgressFlag

When you read this you still get the impression that a modal progress indicator should be displayed when this flag is set - even with MacOS X.

I have compiled ADC's URLAccessSample sample code and the built application is behaving exactly the same on MacOS X: transfer is successful but no progress dialog either.

I have reported a bug to ADC (bug ID 3241673) but I am afraid it won't help much: thank's in advance for any guideline you could provide to work around this issue.

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.

  • Follow-Ups:
    • Re: URLAccess kURLDisplayProgressFlag issue
      • From: Quinn <email@hidden>
  • Prev by Date: SMB share re-naming?
  • Next by Date: Re: SMB share re-naming?
  • Previous by thread: Re: SMB share re-naming?
  • Next by thread: Re: URLAccess kURLDisplayProgressFlag issue
  • Index(es):
    • Date
    • Thread