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 Jun 28, 2006, at 1:54 AM, Stephen Kay wrote:

on 6/28/06 1:17 AM, Stephen Kay at email@hidden wrote:

- allocate a CFMutableArrayRef
- call GetWindowList
- iterate over the window list with GetNextWindow, picking out the
windows that you want to close
- add each window to the array
- when you're done, iterate over the array, and close each window


One question about this: I just implemented this, I haven't used CFMutableArrays before, quite handy, but...

Do you need to free up anything when you're done with it? It seems to not
have a Free() type function, and the CF Array Reference doesn't seem to say
anything about it.

I use C++ and I'd just use a vector. It's simpler than using a CFMutableArray.


Larry
_______________________________________________
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: 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 © 2011 Apple Inc. All rights reserved.