Objects passed as arguments in protocol methods


#1

I’m a bit unclear on where some of these objects that are getting passed as arguments in some of the protocol methods are being created. Take this method in whereamiviewcontroller.m

[code]- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{
NSLog(@"%@", newLocation);
NSTimeInterval t = [[newLocation timestamp] timeIntervalSinceNow];

if (t < -180) {
    return;
}

[self foundLocation:newLocation];

}[/code]

According to the documentation, newLocation is provided to the method by a CLLocationManager object. But where was this newLocation object created?