title: AppDelegate global variable holds NULL value all time
body: <p>I am facing very strange problem.. For my project I made 3 different modules now I am integrating them all..My problem is none of my global variable can hold values..It holds <strong>NULL</strong> all the time..</p>
  
  <p>for example have a look at my PickerView code: </p>
  
  <pre><code>- (void)pickerView:(UIPickerView *)thePickerView didSelectRow:(NSInteger)rowinComponent:(NSInteger)component 
  { 
    am=(AppMakerAppDelegate *)[[UIApplication sharedApplication]delegate]; 
    NSString *domainName = [NSString stringWithFormat:@"%@" , [array objectAtIndex:row]]; 
    am.url=domainName; 
    txtnewscategory.text = domainName; 
    am.catagory_title=[title1 objectAtIndex:row]; 
    NSLog(@"Domain:%@ --&gt; %@ ",domainName,[array objectAtIndex:row]); 
  } 
  </code></pre>
  
  <p>Here I get <strong>"domainName"</strong> value exactly but when its assigned to global variable am.url it shows null value.. 
  Same case for <strong>"am.catagory_title"</strong></p>
  
  <p>Note:</p>
  
  <p>1) <strong>url</strong> and <strong>catagory_title</strong> are declared in AppDelegate and both are <strong>NSString</strong> datatype.</p>
  
  <p>2) <strong>am</strong> is appdelegate object and used like this..</p>
  
  <pre><code>  Appmaker_NewsInfoAppDelegate *am;
    am=(Appmaker_NewsInfoAppDelegate *)[[UIApplication sharedApplication]delegate];
  </code></pre>
  
  <p>Can anyone tell me what Am i doing wrong?? the code works perfectly at original project from where I exported it but doesn't when exported to integrate it.</p>
  
  <p>Thanks..</p>
  
  <p>Edit :</p>
  
  <p>3) in  Appmaker_NewsInfoAppDelegate.h(Delegate class where global variables are declared)</p>
  
  <pre><code>  NSString *url;
  
  
    @property(retain,nonatomic) NSString *url;
  </code></pre>