I’m completely new to iOS and Objective-C but this book is proving to be a very good read. I just have a quick question about the CLLocationCoordinate2D implementation here. When creating the class, I typed:
@interface MapPoint : NSObject <MKAnnotation>
I understand what this does and how we implement it, but one thing I’m still unsure about is why ‘coordinate’ is not a pointer like ‘*title’? I looked in the documentation and it’s TypeDef struct which is why we don’t actually type it as a pointer, but why is it implemented like that? Why are TypeDef structs not returning pointers, but other classes do (such as Possesson *p from the previous chapters)? I’m probably missing something obvious, so thanks for any help!