• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Examples or Documentation for Non-document-based Multi-window App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Examples or Documentation for Non-document-based Multi-window App


  • Subject: Re: Examples or Documentation for Non-document-based Multi-window App
  • From: Michael Ash <email@hidden>
  • Date: Wed, 11 Mar 2009 12:18:33 -0400

On Tue, Mar 10, 2009 at 6:09 PM, Grant Erickson <email@hidden> 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.

IMO this is a bit backwards. The framework providing stuff you don't
need isn't a hurdle at all. If you don't need it, just don't use it.
The real question is, does it provide stuff you *do* need.

I think this could work well as an NSDocument application. Write your
documents to grab the random quote when an untitled document is
created, disable or don't implement all the functionality you don't
need, and off you go.

Mike
_______________________________________________

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

References: 
 >Examples or Documentation for Non-document-based Multi-window App (From: Grant Erickson <email@hidden>)

  • Prev by Date: Compile Problems
  • Next by Date: Re: iPhone book recommendations
  • Previous by thread: Re: Examples or Documentation for Non-document-based Multi-window App
  • Next by thread: Cant figure out images
  • Index(es):
    • Date
    • Thread