Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to close all open windows except for a few "special ones"?



on Wed, 28 Jun 2006 02:27:48, Stephen Kay <email@hidden> wrote:

> I did what you suggested using the windowList, and it works perfectly when I
> option click on a window's close box.
> 
> But when I call the same code in response to a "Close All" item on my File
> Menu, GetWindowList() seems to return a pointer to the menu (a single window
> of name "File"), and the code fails.

There is some bug in your code. Once you fix it (for better
understanding what's going on), just switch to GetFrontWindowOfClass/
GetNextWindowOfClass (appropriate class) so that menu windows and
other unrelated windows will just  not be in the iterated list.

Mike


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: How to close all open windows except for a few "special ones"? (From: Stephen Kay <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.