• 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
What's wrong with having multiple windows per document in only one nib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What's wrong with having multiple windows per document in only one nib?


  • Subject: What's wrong with having multiple windows per document in only one nib?
  • From: Stephane Sudre <email@hidden>
  • Date: Sun, 14 Aug 2005 17:35:59 +0200

When you look at the different tutorials, documents on multiple windows per NSDocument, the recommended solution is to have multiple nibs (one per window) and one controller per window.

When making tests, this just work but not as I wish to. When you create or open a document, all the windows (main and secondaries) are displayed. This is not what I would like.

Basically, I'm trying to add a build window (as in Xcode or Project Builder) per document.

When making tests, with one nib per document and 2 windows per document (one for the document window), I'm apparently getting the proper result:

- the secondary window is not displayed by default.
- the secondary window is closed when the main document window is closed.
- there's one secondary window per document.


Is there something wrong going this way instead of the recommended one?

_______________________________________________
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: What's wrong with having multiple windows per document in only one nib?
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: Calculated Field examples for Core Data
  • Next by Date: Re: Calculated Field examples for Core Data
  • Previous by thread: Re: Sync services notification
  • Next by thread: Re: What's wrong with having multiple windows per document in only one nib?
  • Index(es):
    • Date
    • Thread