The TilemapKit Roadmap is yours! All the ideas and discussions
0 votes Vote

TKProperties: allow default values in code

Extend the TKProperties interface in a way that allows setting the defaults in code:

Existing: -(BOOL) boolForKey:(nonnull NSString*)key; // defaults to NO
Wishlist: -(BOOL) boolForKey:(nonnull NSString*)key withDefaultValue:(BOOL) value;

Jegge , 27.08.2015, 09:33
Response from the site administrator
sitterheim, 27.08.2015
Easy peasy. :)
Idea status: completed

Comments

sitterheim, 27.08.2015, 19:02
So if there's no value for the key, return the default instead?

Leave a comment