• 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: retrieve a milliseconds interval with obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: retrieve a milliseconds interval with obj-C


  • Subject: Re: retrieve a milliseconds interval with obj-C
  • From: Andrea Salomoni <email@hidden>
  • Date: Fri, 25 Nov 2005 16:40:55 +0100

Hi and thank you,

the problem is simple : I need to check a socket connection with that while so:

if (10 seconds are passed)
	{
	return an error and exit;

	}
else
	{

	continue
	}

How can I do?
Thank you all!

Il giorno 25/nov/05, alle ore 13:13, Marco Scheurer ha scritto:


On Nov 25, 2005, at 10:36 AM, Andrea Salomoni wrote:

Thank you,

return.... I can return inside an action?
And does return stop the execution?

Yes, but the code you posted is probably not what you want. Try:

[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:10.0]];

instead of your while loop.



Marco Scheurer
Sen:te, Lausanne, Switzerland   http://www.sente.ch


_______________________________________________ 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: retrieve a milliseconds interval with obj-C
      • From: Shawn Erickson <email@hidden>
References: 
 >retrieve a milliseconds interval with obj-C (From: Andrea Salomoni <email@hidden>)
 >Re: retrieve a milliseconds interval with obj-C (From: j o a r <email@hidden>)
 >Re: retrieve a milliseconds interval with obj-C (From: Andrea Salomoni <email@hidden>)
 >Re: retrieve a milliseconds interval with obj-C (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Re: expose hotkeys
  • Next by Date: Re: retrieve a milliseconds interval with obj-C
  • Previous by thread: Re: retrieve a milliseconds interval with obj-C
  • Next by thread: Re: retrieve a milliseconds interval with obj-C
  • Index(es):
    • Date
    • Thread