views:

11

answers:

0

Hello, I need help with this. I developing an iphone app and I need to connect to the server from diferents views. So I was thinking like in java or C, I mean, A possible solution is to create a class and embed the connections for the app. I write an example:

int ObjServer.ValidateUser(user:string,passwd:string)

NSMutableArray ObjServer.CheckMessages(user:string) (I need to return a list of objects from xml file)

I hope you understand, because the problem is to encapsulate everything and call this functions to obtain the results.

Any help will be appreciated, thanks in advance