Re: Examples or Documentation for Non-document-based Multi-window App
Re: Examples or Documentation for Non-document-based Multi-window App
- Subject: Re: Examples or Documentation for Non-document-based Multi-window App
- From: Graham Cox <email@hidden>
- Date: Wed, 11 Mar 2009 17:44:00 +1100
On 11/03/2009, at 9:09 AM, Grant Erickson wrote:
Suppose I were writing an application, perhaps similar to the
example at
http://en.wikibooks.org/wiki/Programming_Mac_OS_X_with_Cocoa_for_beginners/B
uilding_a_GUI (or many of the examples in /Developer/Examples/...)
that had
no file-based interaction whatsoever but for which I wanted to allow
the
user to open up and interact with up to N windows.
Using the example above, each newly-opened window perhaps displays
something
from quote of the day (QOTD) or some other singular random data source
rather than "Hello World".
It seems the document-based architecture is ill-suited to such an
application because there is effectively no need to open, save,
revert,
print, etc. anything.
Does anyone have any recommendation for examples, URLs or books that
might
discuss and illustrate such an application or the rough framework
thereto?
You can open as many windows as you want, they don't have to be
associated with documents.
Each one can work in isolation, or if you need to, you can create your
own controller that keeps a list of "its" windows.
Not sure I see what the problem is here...
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden