Hi all, As a developer entering the cocoa world for the first time one of the things I am finding difficult is how to start structuring an application, I mean what classes should I create to make an OK application design.
I have a simple application I am working on at the moment, and am hoping someone can give me some pointers on the classes I should write. The application will be using the "Quicklite" framework to connect to SQLite databases and display a selection list of all tables in the database, with a table view to show the data from the selected table. A first attempt at designing the application has come up with the following, - I will need a class to open and maintain the connection to the database. I was thinking of using an Application Delegate class to do this and then expose the connection via a property. - I will need a view controller class for the table list UI object. This controller class will goto the Application delegate for the database connection and ask it a list of tables in the database. It will also maintain the current selected table. Any changes to the selection will trigger a call to the table view controller to make an update. - I will need a view controller class for the table view UI object. This controller class will goto the application delegate for the database connection and ask for table/row information as needed to display in the table. The current selected table is read from the table list controller object. - I will need to provide outlets in the controller classes so interface builder can bind them all together. Does anyone have any comments on my design so far? Thanks Phillip Hall _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]