- (id) initWithCoordinate: (CLLocationCoordinate2D) c title:(NSString *) t
coordinate = c;
[self setTitle: t];
2 newbie questions:
Why super? If we are making MapPoint to store the data (because MKAnnotation can’t), and this is a method of MapPoint, why isn’t it [self init]? Who is super? NSObject?
How would I know that the setTitle method existed? We didn’t define it. I don’t see a setTitle instance or class method defined in the Apple documentation for NSObject, MKAnnotation, etc. Can I assume there is a setX method for every class variable (i.e. the @synthesize title created the setTitle: setter)? Is this the same as self.title = *t;?