loganwright/PlistModel

question!

yunchiri opened this issue · 3 comments

what is instanceOfPlistModel?

could you show me code?

I can't understand how to use sample

thank you

Hi @yunchiri

An instance of PlistModel is an in memory representation of the .plist file that loads, for example, when we have this:

[DynamicModel plistNamed:@"DynamicModel" inBackgroundWithBlock:^(PlistModel *plistModel) {
    NSLog(@"Fetched plist model: %@", plistModel);
}];

In the above example, the variable plistModel is an instance of the model that can be used and modified.

You can also allocate in line like this:

MyPlist *plist = [MyPlist plistNamed:@"MyPlist"];
plist[@"key"] = @"value";

Where in the above, plist is a representation of your plist on disk. I'm not exactly sure what you're looking for, does this answer your question?

Hi @loganwright

aha
Now I understand

"instanceOfPlistModel" mean just sudo code right?

thank you^^

yup!

Glad we got it figured out, I'll consider clarifying the documentation on this.

Good luck w/ the rest of your project!

  • Logan