Every object that is derived from NSObject has the ability to be managed by retain counting. When an object is created (alloc) the system will allocate memory for the object and set a retain count to 1. The count can be incremented when a new instance of this object exist (assignment for example) and decrement when an object instance is released. Once the retain count is going to zero the object will be destructed and the memory gets freed. This post is Continue reading Objective-C Memory Management
What is the best affordable digital piano you can get from a pianists perspective? And how real can it get?
When start scripting with Lua one may notice that its functional range is some what reduced to a tiny set of essential basics. One thing I was missing at least is an enum type. But we could implement something very close. Before we start I want to recommend the online demo at lua.org. Just paste your lua code into the lua-shell window and press “run” to see if it works. A very simple enum function could be something like this: Continue reading Lua Enum