Re: mount() from Cocoa App
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