title: testing GPS in iPhone simulator problem
body: <p>I found some various articles about testing the GPS (corelocation) in the iPhone simulator. 
  It seems pretty straightforward, but i can't get it to work. </p>
  
  <p>The error message i'am getting is:</p>
  
  <pre><code>
  2010-07-30 11:20:16.372 appname[50954:207] *** +[CLLocation initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:]: unrecognized selector sent to class 0x32081320
  
  2010-07-30 11:20:16.373 appname[50954:207] CoreAnimation: ignoring exception: *** +[CLLocation initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:]: unrecognized selector sent to class 0x32081320
  </code></pre>
  
  <p>the code i'am using is:</p>
  
  <pre><code>
  self.locationManager = [[[CLLocationManager alloc] init] autorelease];
  locationManager.delegate = self;
  locationManager.distanceFilter = 100.0f;
  locationManager.desiredAccuracy= kCLLocationAccuracyBest;
  [locationManager startUpdatingLocation];
  
  // test simulator location once
  [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(updateTestLocation) userInfo:nil repeats:NO];
  
  
  -(void)updateTestLocation{
  
  CLLocationCoordinate2D newlocation;
  newlocation.latitude = 37.0;
  newlocation.longitude = 127.0;
  
  CLLocation *sampleLocationUpdate = [[CLLocation init] initWithCoordinate:newlocation altitude:100 horizontalAccuracy:100 verticalAccuracy:100 timestamp:[NSDate date]];             
  
  [self locationManager:nil didUpdateToLocation: sampleLocationUpdate fromLocation: nil];
  //[self locationManager:locationManager didUpdateToLocation: sampleLocationUpdate fromLocation: nil];
  </code></pre>
  
  <p>i hope someone can help me fix this, because it sure will save a lot of time testing</p>