Re: Slightly more advanced Cocoa learning resources
Re: Slightly more advanced Cocoa learning resources
- Subject: Re: Slightly more advanced Cocoa learning resources
- From: Joakim Danielson <email@hidden>
- Date: Thu, 24 Jun 2004 16:04:33 +0200
It seems like I'm on the same track as you, only some steps ahead. I'm
also writing an application that uses a database with multiple windows.
This is my first application not counting examples from books and
online tutorials. I have not found a book or a single tutorial that
have helped me when moving from the simpler "one-window" application
to this. Instead I have used a more iterative approach of learning some
stuff and then implementing it. It's been a bumpy road but it have lead
me forward.
I have found that Apple's documentation is really good, but it is
overwhelming at first. It's always easier to find and understand the
information if you have a specific topic that you're researching. The
problem of course in the beginning is to identify those topics. A good
starting point is the articles under Design Guidelines and specially
http://developer.apple.com/documentation/Cocoa/Conceptual/
AppArchitecture/index.html.
How does the MVC model breakdown in things beyond a currency
converter?)
The MVC model for your application would probably look like this:
The view(V) would be a nib file that holds the window and it
components. For each view you will have a control (C) class that is a
subclass of NSWindowControl. This class will handle the communication
between the view and one or many model (M) objects that represents the
data in your database. The control objects will, through some kind of
persistence mechanism, be responsible for loading and storing model
objects from/to the database.
Joakim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.