title: nsObject for using ASIHTTPRequests
body: <p>I would like to create an nsobject that will have all of my methods that will be used for talking to my php scripts and getting data from my database.</p>
  
  <p>I would like to use ASIHTTPRequest wrapper to do this for me, however I am not sure how to structure this nsobject as there will be several methods calling different php scripts (or the same php with different functions in that).</p>
  
  <p>Where I get abit lost is when thinking about calling an nsobject method from the view where I would like to display the data from the database as I am not sure how to get the data over to the view with the - (void)requestFinished:(ASIHTTPRequest *)request{ method.</p>
  
  <p>For instance would the nsobject be like this</p>
  
  <pre><code>//...
  -(IBAction) method1
  {
       NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com"];
       ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
       [request setDelegate:self];
       [request startAsynchronous];
  }
  
  -(IBAction) method2
  {
       NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com"];
       ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
       [request setDelegate:self];
       [request startAsynchronous];
  }
  -(IBAction) method3
  {
       NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com"];
       ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
       [request setDelegate:self];
       [request startAsynchronous];
  }
  
  //Then catch each method request with one
  
  - (void)requestFinished:(ASIHTTPRequest *)request{ //etc
  
  //and use one failed request 
  
  - (void)requestFailed:(ASIHTTPRequest *)request{ //etc
  </code></pre>
  
  <p>or do you put the requestFinished method inside the view you want to display the information in?</p>