• 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 with multiple windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document with multiple windows


  • Subject: Re: Document with multiple windows
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 13 May 2002 13:26:38 +0200

On Monday, May 13, 2002, at 06:44 , Charles Srstka wrote:

Okay, I have a document that has a document window. That window can spawn more windows that can become key. What's the best way to keep the document on the responder chain so that document commands that are linked to the first responder (save, save as, etc.) work? The way it currently is, if the document's main window is frontmost, the commands all work, but if any window is in front of it, they don't.

Perhaps I don't understand fully, but I guess you want to ensure that the document window stays "main window", whilst any other supplementary one is just "key window". Both key (who has insertion point, and since Apple crippled AppKit it has to be also frontmost) and main (who contains the current document) windows are in FR chain.

If you used panels for all supplementary windows (which I'd recommend), it should work automatically. Otherwise you have to play with main/key somewhat yourself -- see NSWindow docs for howto.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Document with multiple windows
      • From: Charles Srstka <email@hidden>
References: 
 >Document with multiple windows (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Cocoa collision problems
  • Next by Date: Re: Sound and frequences ... [OT]
  • Previous by thread: Re: Document with multiple windows
  • Next by thread: Re: Document with multiple windows
  • Index(es):
    • Date
    • Thread