On Sat, May 24, 2008 at 2:11 AM, Mike <[EMAIL PROTECTED]> wrote: > Why does [ NSURLConnection canHandleRequest: ] return YES even if I turn > off all my network connections? I thought this method was supposed to be > used for preflighting connection requests?
>From what I gather, the "preflight" referred to in the docs is just a check to see if a protocol class is registered to handle the scheme (http:, file:, etc.). That is, it tells you if the proper machinery is in place to *attempt* the connection, not whether the attempt will succeed or not. It allows you to distinguish between "I don't grok gopher" and actual network-layer errors. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]