iPhone Testing Internet Connection?

2009-12-15 Thread Chunk 1978
i have been researching how to do this, and while i believe my code is correct, i always receive the alert stating the internet connection is unavailable. what am i doing wrong? -=-=-=-=- - (BOOL)internetConnection { //INTERNET CONNECTION TESTING //Add the

Re: iPhone Testing Internet Connection?

2009-12-15 Thread Jonathan del Strother
Perhaps you should be calling the internetConnection function, rather than comparing its address to 0x001 ? if (internetConnection() == YES) 2009/12/15 Chunk 1978 chunk1...@gmail.com: i have been researching how to do this, and while i believe my code is correct, i always receive the

Re: iPhone Testing Internet Connection?

2009-12-15 Thread Chunk 1978
haha... yeah, i just figured out my idiot mistake at the same time as your reply. clearly i need more coffee. thanks :) On Tue, Dec 15, 2009 at 7:33 AM, Jonathan del Strother maill...@steelskies.com wrote: Perhaps you should be calling the internetConnection function, rather than comparing

Re: iPhone Testing Internet Connection?

2009-12-15 Thread Claus Guttesen
haha... yeah, i just figured out my idiot mistake at the same time as your reply.  clearly i need more coffee. thanks :) Or cocoa? :) -- regards Claus When lenity and cruelty play for a kingdom, the gentler gamester is the soonest winner. Shakespeare twitter.com/kometen

Re: iPhone Testing Internet Connection?

2009-12-15 Thread David Duncan
On Dec 15, 2009, at 4:25 AM, Chunk 1978 wrote: i have been researching how to do this, and while i believe my code is correct, i always receive the alert stating the internet connection is unavailable. what am i doing wrong? Don't use Reachability synchronously. At some point you will be

Re: iPhone Testing Internet Connection?

2009-12-15 Thread Markus Spoettl
On Dec 15, 2009, at 6:20 PM, David Duncan wrote: Don't use Reachability synchronously. At some point you will be blocked, you will hit a watchdog timer, and your application will be killed. I find that a little misleading. It seems to depend on how you use the API. If you check for a