In de iPhone SDK, kunnen we zien alleen objecten, en niet stutten als CLLocationCoordinate2D?
Voorbeeld: Ik heb een aantal zeer eenvoudige code waar ik wil graag een eigenschap van het type te observeren CLLocationCoordinate2D, heb ik ervoor om het te synthetiseren in ABC.m. gemaakt
@interface ABC
{
CLLocationCoordinate2D currentLocation;
}
@property (nonatomic, readwrite) CLLocationCoordinate2D currentLocation;
Nu in een andere klasse I do:
[ABC addObserver:self forKeyPath:@currentLocation options:NSKeyValueObservingOptionNew context:NULL];
Om een of andere reden, de observeValueForKeyPath methode meldt nooit dat sleutelpad currentLocation veranderd.
Bedankt,
SJS













