geolocation
<p>i work yet on simulator and i am waiting for the test on the device, while waiting i wish to share with you my code hoping you to help me figure out the causes of <strong>5 warnings</strong>
my app is composed from 2 classes : CoreLocationController and GeoLocationViewController .</p>

<p>the CoreLocationController is the class which suppose to act as a Core Location Manager Delegate. This class will receive messages from the Core Location framework containing the raw data and will then pass this to our view controller class later on. 
<strong>CoreLocationController.h</strong></p>

<pre><code>#import &lt;Foundation/Foundation.h&gt;
#import &lt;CoreLocation/CoreLocation.h&gt;

@protocol CoreLocationControllerDelegate
@required
-(void)LocationUpdate:(CLLocation*)location;//Our location updates are sent here
-(void)locationError:(NSError*)error;//Any errors are sent here
@end
@interface CoreLocationController : NSObject&lt;CLLocationManagerDelegate&gt; {

    CLLocationManager *locMgr;
    id delegate;
}
@property(nonatomic,retain)CLLocationManager *locMgr;
@property(nonatomic,assign)id delegate;
@end
</code></pre>

<p><strong>CoreLocationController.m</strong></p>

<pre><code> #import "CoreLocationController.h"
    @implementation CoreLocationController

    @synthesize locMgr,delegate;

    -(id)init{

        self=[super init];
        if(self!=nil)   {

            self.locMgr=[[[CLLocationManager alloc] init] autorelease];//create new instance of locMgr
            self.locMgr.delegate=self;//set the delegate as self

        }
        return self;    
    }


    -(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation*)newLocation fromLocation:(CLLocation*)oldLocation  {   


        if([self.delegate conformsToProtocol:@protocol(CoreLocationControllerDelegate)])    {


            //check if the class assigning itself as the delegate conforms to our protocol. If not,, the message will go now here. Not good
            [self.delegate LocationUpdate:newLocation];

        }

    }


    -(void)LocationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error   {

        if([self.delegate conformsToProtocol:@protocol(CoreLocationControllerDelegate)])    {
        //check if the class assigning it self as the delegate conforms to our protocol.If    not, the message will go now here. Not good
            [self.delegate locationError:error];
        }
    }

    -(void)dealloc  {   
        [self.locMgr release];
        [super dealloc];

    }
    @end
</code></pre>

<p><strong>GeoLocationViewController.h :</strong></p>

<pre><code>#import &lt;UIKit/UIKit.h&gt;
#import "CoreLocationController.h"
@interface GeoLocationViewController : UIViewController &lt;CoreLocationControllerDelegate&gt; {

    CoreLocationController *CLController;
    IBOutlet UILabel *locLabel;

}
@property (nonatomic,retain)CoreLocationController *CLController;
@end
</code></pre>

<p><strong>GeoLocationViewController.m :</strong></p>

<pre><code>#import "GeoLocationViewController.h"

@implementation GeoLocationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    CLController=[[CoreLocationController alloc] init];
    CLController.delegate=self;
    [CLController.locMgr startUpdatingLocation];
}

-(void)locationUpdate:(CLLocation *)location    {

    locLabel.text=[location description];

}
-(void)locationError:(NSError *)error   {

    locLabel.text=[error description];
}
- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];

    // Release any cached data, images, etc that aren't in use.
}
- (void)dealloc {

    [CLController release];
    [super dealloc];
}

@end
</code></pre>

<p><strong>Now for the warnings i got :</strong></p>

<pre><code>warning: property 'CLController' requires method '-CLController' to be defined - use @synthesize, @dynamic or provide a method implementation


 warning: property 'CLController' requires the method 'setCLController:' to be defined - use @synthesize, @dynamic or provide a method implementation


 warning: incomplete implementation of class 'GeoLocationViewController'


 warning: method definition for '-LocationUpdate:' not found


warning: class 'GeoLocationViewController' does not fully implement the 'CoreLocationControllerDelegate' protocol
</code></pre>

<p>Last question please, if my build run successufully, but my code doesn't show any informations about geolocation, should i wait to test my build on device to judge on it ??
Thx in advance for your help :)</p>
