• 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: mount() from Cocoa App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mount() from Cocoa App


  • Subject: Re: mount() from Cocoa App
  • From: Quinn <email@hidden>
  • Date: Mon, 17 Oct 2005 22:18:51 +0100

At 14:08 -0700 17/10/05, Jim Luther wrote:
- Jim (answering since Quinn's probably asleep right now :)

Actually, Quinn has put the kids to bed and is back at the keyboard (-:

My general advice for dealing with timeouts is to use an infinite timeout and provide the user with status and a way to cancel. That way, if the user has kicked out their network cable (or is on the wrong AirPort network, or whatever), they get a chance to rectify that problem without you artificially timing out. You should only use a specific timeout if it's not appropriate to provide a cancel button (for example, you're a server).

Implementing this philosophy for server mounting is easy because Apple provides you with a cancel call (FSCancelVolumeOperation).

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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


  • Follow-Ups:
    • Re: mount() from Cocoa App
      • From: Jim Luther <email@hidden>
References: 
 >Re: mount() from Cocoa App (From: Jim Luther <email@hidden>)

  • Prev by Date: Re: mount() from Cocoa App
  • Next by Date: Re: mount() from Cocoa App
  • Previous by thread: Re: mount() from Cocoa App
  • Next by thread: Re: mount() from Cocoa App
  • Index(es):
    • Date
    • Thread