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

TK: Assign Tiled properties to node properties/ivars via KVC/reflection

[object.properties assignToObject:objectNode];

That would take the object's Tiled properties and tries to assign those properties matching both name and type to corresponding @property or ivars in the given target object.

Also perhaps make TKProperties enumerable.

sitterheim, 18.07.2015, 16:57
Idea status: completed

Comments

sitterheim, 15.08.2015, 17:54
This will be in v0.89. See class docs: http://tilemapkit.com/class-reference/html/Classes/TKProperties.html#//api/name/assignToObject:

Will assign properties with the "self." prefix to distinguish such properties. Uses KVC to apply the property value, so it's possible to override the usual KVC methods in the class in question to further relay assignment or apply proper conversion.

Leave a comment