Cocoa patterns?
Cocoa patterns?
- Subject: Cocoa patterns?
- From: brian hook <email@hidden>
- Date: Sat, 25 Aug 2001 22:21:07 -0700
I'm relatively new to the world of Cocoa/Obj-C and am embarking on building
my first (fairly large) app in Cocoa. Unfortunately the app seems slightly
more complex than the typical multiple document app, but this may be a
result of my confusion more than anything else. I've read "Learning Cocoa"
and most of the docs on the Apple developer site.
The app I'm doing is basically a "workspace" style app, similar to
ProjectBuilder. When I say "workspace" I mean "an application that has a
plethora of different editors for different types".
I'm not sure the right way to architect the app in terms of MVC. My naive
way of looking at it is that I'll have a "metacontroller" which possesses
several multiple document controllers. The application workspace is the
metacontroller and, in turn, controls the various specific object editors
through their own controllers. Each type of object editor adheres to a
multiple document MVC paradigm. Does this sound like the right path?
On a slightly related note, and the reason for the subject line, is that I
assume there is a repository of information about design patterns in Cocoa,
i.e. stuff the old-hands use matter-of-factly that the newbies don't know
about.
For example, how do most people use IB in a production development
environment? Do they tend to use it early to generate files then don't
touch them, or do they commonly rearchitect the UI throughout the project
and deal with any side effects as they crop up?
Thanks,
Brian Hook