Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: How to close all open windows except for a few "special ones"?
[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 6/28/06 12:58 AM, Sanjay Mishra at email@hidden wrote:

> Why should one go through the list and pick and create another list for
> deletion? Why not pick and put it on a deletion list (not the special
> list) when the document is opened. By this I mean make a decision when
> the document is opening about what kind of document it is. This will
> make it easy to delete: without going through the list twice.

The suggestion seemed logical to me.

A situation might occur where a document changes from one type to the
"special type not able to be closed", and then you would have to
maintain/modify the original window list. Plus, why maintain a list that
might never get used? If the user never chooses "Close All", then it's not
necessary. Better to do it when the user requests it.

> Another solution could be, going through the list when ever a close-all
> is requested and delete all those that can be deleted without putting
> them on separate list.

Well, I'm not sure, but if you get a pointer to the window list, and then
while you're traversing it you start closing windows, would this mess with
the window list?

Anyway, my question was a bit stupid, it turns out, I haven't been in there
doing WindowList related things for awhile, and I sort of forgot I could
just walk the Window List and then test each window. I was locked into the
mindset of bringing each window to the front in a loop. Sorry about that.
:-)


- Stephen

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Stephen Kay
Karma Lab - developers of KARMA
http://www.karma-lab.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


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

This email sent to email@hidden

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



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.