• 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: Tabs and Documents Design Considerations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tabs and Documents Design Considerations


  • Subject: Re: Tabs and Documents Design Considerations
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 17 Aug 2006 21:29:51 -0700
  • Thread-topic: Tabs and Documents Design Considerations

on 06/08/16 11:45, Dimitri Bouniol at email@hidden wrote:

> In my NSDocument-Based App, I would like to feature tabs in the
> windows, so multiple NSDocuments can share the same real-estate. I
> would also like to be able to drag tabs between windows, or to drag
> them in a empty space to create a new window. How should I organize
> this with my classes? Should I:
> - Have a mutable array of window controllers and a mutable array of
> documents (without their own window controllers)
> - Have a mutable array of window controllers and a mutable array of
> documents with their own window controllers that don't have windows
> - Have a mutable array of window controllers and a mutable array of
> documents with their own window controllers that have a custom
> subclass of NSWindow

None of the above.  You'll want a single mutable array of "documents".  Each
document might have an NSTabViewItem as an instance variable.  Your window
will have one windowController.  Having what are essentially instance
variables spread across multiple arrays is problematic.  Think "objects".


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Tabs and Documents Design Considerations
      • From: Dimitri Bouniol <email@hidden>
References: 
 >Tabs and Documents Design Considerations (From: Dimitri Bouniol <email@hidden>)

  • Prev by Date: Re: [self init] vs. [super init] in initWithCoder
  • Next by Date: Re: column-oriented data
  • Previous by thread: Tabs and Documents Design Considerations
  • Next by thread: Re: Tabs and Documents Design Considerations
  • Index(es):
    • Date
    • Thread