I have the following class:
@interface Location : RKObject <NSCoding>{
NSNumber* _latitude;
NSNumber* _longitude;
NSNumber* _route_order;
CLLocationCoordinate2D coordinate;
}
@property (nonatomic, retain) NSNumber* latitude;
@property (nonatomic, retain) NSNumber* longitude;
@property (nonatomic, retain) NSNumber* route_order;
- (id) initWithLatitude:(double) lat andLongitude:(double) longt;
@end
I would like to bind the coordinate.latitude with _latitude doubleValue and the same thing with longitude. So the value of coordinate.latitude is always set with whatever value is currently at _latitude. Is this possible in objective-C