object-state

How use bit/bit-operator to control object state?

I want to create light object data-package to pass between client and server applications. It is a so simple task, that I can control with only 1 byte, so each bit in a byte will have a different meaning, Using only the bit 0 = False 1 = True Itens I need now: 1 - Loaded from database 2 - Persisted 3 - Changed 4 - Marked to Dele...

save and restore state of a tab bar controller

I have an application that has a UITabBarController with two tabs, each having its own navigation controller. Now I want to store the state of the application when the user closes it, so that when the user relauches the application will show the same place as the last time before it was closed. So, in applicationWillTerminate: I have [N...

Serialize & print the entire state of an object while debugging

While debugging an ASP.NET application, I want to get a print-out of the entire state of a very large object. I want all the properties and values in that object and the same for every object-property, recursively. Because the front-end of the application times out after a significant delay, I can't add a watch or use the Immediate wind...