Re: How to interrupt a function
Re: How to interrupt a function
- Subject: Re: How to interrupt a function
- From: j o a r <email@hidden>
- Date: Wed, 30 Nov 2005 17:34:49 +0100
On 30 nov 2005, at 17.27, Andrea Salomoni wrote:
All works fine until (for some problem) the server will go down.
if the server is down the method [socket connectToHostName:host
port:port]; returns false, but the GUI is not available (while
isn't multithread app and the socket blocking is set on YES.).
But you don't check for the return value of the "connectToHost" method.
Also, where does the exception come from? When you call methods that
can throw exceptions, you need to use guards. You simply have to. So,
open your Cocoa-textbook and read up on that before you continue!
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden