• 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: How to interrupt a function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to interrupt a function
      • From: Shawn Erickson <email@hidden>
References: 
 >How to interrupt a function (From: Andrea Salomoni <email@hidden>)
 >Re: How to interrupt a function (From: Colin Barrett <email@hidden>)
 >Re: How to interrupt a function (From: Andrea Salomoni <email@hidden>)
 >Re: How to interrupt a function (From: j o a r <email@hidden>)
 >Re: How to interrupt a function (From: Andrea Salomoni <email@hidden>)

  • Prev by Date: Re: Subclassing NSMutableDictionary
  • Next by Date: Re: Finding the error...
  • Previous by thread: Re: How to interrupt a function
  • Next by thread: Re: How to interrupt a function
  • Index(es):
    • Date
    • Thread