• 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: Document based apps & tabbed windows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document based apps & tabbed windows?


  • Subject: Re: Document based apps & tabbed windows?
  • From: Seth Willits <email@hidden>
  • Date: Sun, 15 Apr 2007 22:29:24 -0700

On Apr 15, 2007, at 9:53 PM, Timothy Reaves wrote:

If I create a document based XCode project, can it be coded to open new documents as tabs in a single window instead of one document per window? Unfortunately I can't seem to find any information on this. All the information & sample code has each new document opened in a new window.

The entire document architecture is designed around one document per- window. Having multiple documents within a window is possible, but it's a pretty big pain if you want certain behaviors - you'll be fighting the document architecture all the way. I fought it and having everything working, but it was really quite tough, and I wonder if there was even any benefit to it at all. Looking back, I probably could have implemented my own document architecture from scratch in the same amount or only a bit more time.


If you're going to [ab]use the document architecture already in Cocoa, the basic premise is to have your document's window controller maintain a list of documents attached to that window, and then which ever one should be the current document in the window, call setDocument: on the window controller.


-- Seth Willits



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Document based apps & tabbed windows?
      • From: "Timothy Reaves" <email@hidden>
References: 
 >Document based apps & tabbed windows? (From: Timothy Reaves <email@hidden>)

  • Prev by Date: Document based apps & tabbed windows?
  • Next by Date: Re: CGEventKeyboardGetUnicodeString + modifier key
  • Previous by thread: Document based apps & tabbed windows?
  • Next by thread: Re: Document based apps & tabbed windows?
  • Index(es):
    • Date
    • Thread