• 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: Grant Erickson <email@hidden>
  • Date: Tue, 10 Mar 2009 23:48:29 -0700
  • Thread-topic: Examples or Documentation for Non-document-based Multi-window App

On 3/10/09 11:44 PM, Graham Cox wrote:
> 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:

No problem per se. I am simply looking for an example or "Best Practices
When Eschewing NSDocumentController and Friends" guidance or documentation.

Ken Thomases' response should get me headed off in the right direction.

Regards,

Grant


_______________________________________________

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: 
 >Re: Examples or Documentation for Non-document-based Multi-window App (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Examples or Documentation for Non-document-based Multi-window App
  • Next by Date: How to get all directories and folders in Tree format
  • Previous by thread: Re: Examples or Documentation for Non-document-based Multi-window App
  • Next by thread: Re: Examples or Documentation for Non-document-based Multi-window App
  • Index(es):
    • Date
    • Thread