On 6 Aug 2009, at 09:27, James Lin wrote:

[...]

keeps querrying the php/mysql server for message left for it with a querry to php/mysql server inside a NSTimer (say querry once every 30 seconds).

[...]

Is this my best option given what I want to accomplish?


I'm afraid it isn't, polling a server is a pretty bad idea, on the iPhone in particular; it will drain the battery quickly. It sounds like you need some kind of messaging server, to which the clients maintain a persistent connection.

Keith
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to