• 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: Close all windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Close all windows


  • Subject: Re: Close all windows
  • From: Shawn Erickson <email@hidden>
  • Date: Tue, 30 Jan 2007 20:11:46 -0800


On Jan 30, 2007, at 8:58 AM, Theodore H. Smith wrote:


Is there some way to close all windows, before quit?

I'm getting some bugs happening with event ordering on quit, and I'd like to fix them by quitting all windows myself before saving the preferences as the final stage before quit.

Consider...

[[NSApp windows] makeObjectsPerformSelector:@selector(performClose:) withObject:self] ;

... or maybe ...

[[NSApp windows] makeObjectsPerformSelector:@selector(close)];

-Shawn
_______________________________________________

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


References: 
 >Close all windows (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: -[NSDateFormatter dateFromString:] and non-standard formats
  • Next by Date: Re: Initializing Subclass of NSTextContainer
  • Previous by thread: Re: Close all windows
  • Next by thread: Re: Close all windows
  • Index(es):
    • Date
    • Thread