title: singleton class in objective c
body: <p>i have made a singleton class for getting locations via core location. now my problem is that I want to know when the location is updated. I want to use delegates rather than Notifications in this. I know I can post notification. but I dont want to use notifications at all. Is there any other way to do this or only solution for me is NSNotifications.</p>
  
  <p>here is some code</p>
  
  <pre><code>//Initilizer
  + (LocationController *)locationManager;
  
  //How I want to be informed using delegates
  
  id&lt;locationControllerDelegate&gt; delegate;
  
  //Instead what I am being forced to use since I dont know how to use delegates with singleton :(
  
  [[NSNotificationCenter defaultCenter] postNotificationName:@"updated" object:nil];
  </code></pre>
  
  <p>Thank you.</p>
  
  <p>Edit 1:</p>
  
  <p>in typical delegate and simple class we do like this</p>
  
  <pre><code>someClass *somecls = [[someClass alloc] init];
  somecls.delegate = self
  </code></pre>
  
  <p>but in singleton we dont make any instance of class</p>
  
  <pre><code>[[LocationController locationmanager] startUpdateLocation];
  </code></pre>
  
  <p>So in this case how i will be setting the delegate for the singleton class</p>