Re: Cocoa Template Type
Re: Cocoa Template Type
- Subject: Re: Cocoa Template Type
- From: "David P. Henderson" <email@hidden>
- Date: Tue, 26 Jun 2001 14:07:34 -0400
On Tuesday, June 26, 2001, at 12:11 , email@hidden wrote:
Right now I'm trying to understand the difference between a Cocoa App
and a Cocoa Document based App. The program I'm working towards has
several data entry windows, and the user can ask for output
windows(charts, mostly), but they are not the sort that need to be
saved. I think this means I just want a straight Cocoa App template;
the only thing throwing me off, assuming I'm right about the template
in the first place, is that I want the user to be able to have several
of these data display windows open at once. My best guess now is that
I want to start with a straight Cocoa template and add a window
controller object. Am I on the right track here?
Does your application allow users to save and open more than one
document at a time? Just because an app has multiple windows does not
mean that it allows multiple docs, and one document could also have more
than one window associated with it.
The difference between the templates is that the Doc based one sets up a
few house keeping issues for you based on using the NSDocument,
NSDocumentController and NSWindowController model.
Which one you should use depends on whether your users can work with
more than one independent data set at a time for example documents in a
spread sheet (Cocoa Document based App). Or whether they are limited to
one independent data set at a time (Cocoa App).
Dave
--
Chaos Assembly Werks
"Beautiful bodies and beautiful personalities rarely go together."
- Carl Jung