itsbonczek/kingpin — pull request #3 by eugenedymov (2012-11-23 10:05:01+00:00)
Title: Nested annotation. Force reset.

* **Nested annotation**

Sometimes it's not good to completely hide(means deprive access) annotation that I passed to `[self.treeController setAnnotations:[_annotationsManager allMapAnnotations]]`

In `KPAnnotation` I made a property `nestedAnnotation` and set in `- (id)initWithAnnotations:(NSArray *)annotations` that way
```
if (self.annotations.count == 1) {
[self setNestedAnnotation:[self.annotations anyObject]];
}
```

And then I can for example write
```
if (kpAnnotation.nestedAnnotation) {
selectedMapAnnotation = (PPMapAnnotation *) kpAnnotation.nestedAnnotation;
}
```
After that I have access to the annotation I passed to treeController.

* **Force reset**

Nuff said. Sometimes it's useful.

Thanks!