Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-24-2010, 10:27 AM   #26 (permalink)
mirap
Registered Member
 
Join Date: Feb 2010
Posts: 1
mirap is on a distinguished road
Default how to set timeout?

Hi!
I read all the posts here and there is currently no working solution for setting timeout. Fe.: wait(20000); writes "Passing argument 1 of wait makes pointer from integer without a cast"...

Is there any way how to create timeout for:

- (BOOL) connectedToNetwork
{
return ([NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://www.google.com"] encoding:NSASCIIStringEncoding error:nil]!=NULL)?YES:NO;
}
?

Thanks a lot.
mirap is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,526
Threads: 94,045
Posts: 402,623
Top Poster: BrianSlick (7,978)
Welcome to our newest member, iThoms
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:14 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.