Comment spécifier l'enfant des objets de type dans un NSArray avec le Manteau

Si j'ai un dictionnaire comme

{
  name: "Bob",
  cars: [
    { make: "ford", year: "1972" },
    { make: "mazda", year: "2000" }
  ],
}

et deux modèles:

@interface CarModel : MTLModel

@property (nonatomic, strong) NSString *make;
@property (nonatomic, strong) NSString *year;

@end

@interface PersonModel : MTLModel

@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSArray *cars;

@end

Comment puis-je utiliser Manteau pour que mon tableau de voitures en ma personne modèle sont les voitures répartis?

InformationsquelleAutor Mr Rogers | 2012-12-14