• 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: Closing all windows when closing one of them
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Closing all windows when closing one of them


  • Subject: Re: Closing all windows when closing one of them
  • From: j o a r <email@hidden>
  • Date: Sat, 18 Jun 2005 00:19:20 +0200


On 17 jun 2005, at 23.47, James Mastro wrote:

So what I was doing was just responding to windowWillClose: in my main window controller, and calling this function from it:
- (void) closeAllWindows

You could change the way your method is declared to something like this:

- (void) closeAllWindowsInResponseToWindowBeingClosed:(NSWindow *) aWindow
{
// Use your old code but check that ([windows objectAtIndex: x] ! = aWindow)
}


j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Closing all windows when closing one of them (From: James Mastro <email@hidden>)

  • Prev by Date: Re: NSTextTable/NSDrawer bug?
  • Next by Date: Re: Modal dialog alternatives?
  • Previous by thread: Closing all windows when closing one of them
  • Next by thread: "Default" Value In Object
  • Index(es):
    • Date
    • Thread