title: Custom Delegate Method Not being Called in other custom class with its custom delegate
body: <p>I have two classes with custom delegates. First class has a required method that is called correctly in view controllers. When I try to use delegate method from first class in the second class that has its own delegate, nothing happens. I see that delegate method was never called. Here are the class interface declarations for these two classes:
  <strong><em>Class A:</em></strong></p>
  
  <pre><code>@class ServerCommunication;
  @protocol ServerCommunicationDelegate;
  
  @interface ServerCommunication : NSObject
  
  
  @property (weak, nonatomic) id &lt;ServerCommunicationDelegate&gt; delegate;
  
  -(void)requestPageXMLForURLString:(NSString *)stringURL;
  -(void)getPreviewBlastsListXMLFromBlastsListItems:(NSString *)blastsIdsString;
  
  @end
  
  @protocol ServerCommunicationDelegate &lt;NSObject&gt;
  
  @required
  
  - (void)didFinishUIXMLRequestWithSuccess:(NSString *)responseXMLString;
  @end
  </code></pre>
  
  <p><strong><em>Class B:</em></strong></p>
  
  <pre><code>@class AnnotationsListViews;
  @protocol AnnotationsListViewsDelegate;
  
  @interface AnnotationsListViews : NSObject&lt;ServerCommunicationDelegate&gt;
  {
  GDataXMLDocument *listViewXML;
  }
  
   @property (weak, nonatomic) id &lt;AnnotationsListViewsDelegate&gt; delegate;
  
   @property (strong, nonatomic) NSString *blastsIds;
  
   - (id)initWithBlastsIds:(NSString *)blastsIdsString;
   -(void)getPreviewBlastsListXMLFromBlastsListItems:(NSString *)blastsIdsString;
  
   @end
   @protocol AnnotationsListViewsDelegate &lt;NSObject&gt;
  
   @required
   -(void)selectedAnnotationsListTitleText:(NSString *)listTitle;
   -(void)annotationsListViewsGeneratedWithViewsArray:(NSArray *)requestedBlastsListItemsViews;
  </code></pre>
  
  <p>@end
  Here is the method in Class B .m file that calls first class'delegate method:</p>
  
  <pre><code>-(void)getXML:(NSString *)blastsIdsString{
     ServerCommunication *connectionToServer=[[ServerCommunication alloc] init];
     connectionToServer.delegate=self;
     [connectionToServer getPreviewBlastsListXMLFromBlastsListItems:blastsIdsString];
  }
  </code></pre>
  
  <p>Last line of the code works fine, calls "getPreviewBlastsListXMLFromBlastsListItems" from first class. Executes every line of code in second class. But follow delegate method does not get called.
  <strong><em>Delegate to be called:</em></strong></p>
  
  <pre><code>#pragma mark - ServerCommunicationDelegate
  - (void)didFinishUIXMLRequestWithSuccess:(NSString *)responseXMLString{
      NSLog(@"sasasassasasasasasasaa");
  }
  </code></pre>
  
  <p><strong><em>Same calling method and delegate method, I have been using in all of my view controller classes and they work fine.</em></strong> In this case I see that even <strong>NSLog</strong> does not prints anything. I think that there is some separate to handle calling delegate methods in a class inherited from NSObject class. How do I fix that?</p>