¡@

Home 

2014/10/15 ¤U¤È 10:05:57

iphone Programming Glossary: databasemanager

Is it good practice to use AppDelegate for data manipulation and Handling?

http://stackoverflow.com/questions/5155437/is-it-good-practice-to-use-appdelegate-for-data-manipulation-and-handling

oriented approach to section off bits of functionality into well designed objects for example you might have a class DatabaseManager which handles all database interactions. You might then have bits of your app which need the DatabaseManager ask the app.. a class DatabaseManager which handles all database interactions. You might then have bits of your app which need the DatabaseManager ask the app delegate instance for a reference to a DatabaseManager. Alternatively you can pass around a reference to the.. You might then have bits of your app which need the DatabaseManager ask the app delegate instance for a reference to a DatabaseManager. Alternatively you can pass around a reference to the DatabaseManager to the parts of the app that need it. This last approach..