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 6/28/06 10:22 AM, Eric Schlegel at email@hidden wrote:

> Hmm, that doesn't make sense. First, menu windows are no different
> from other windows, and they won't prevent you from seeing other
> windows in the window list. Second, maybe you just mistyped here, but
> you should only be calling GetWindowList once; after the first call,
> you should be calling GetNextWindow. Did you mean to write, "no other
> windows are in the list returned by GetNextWindow()"?

Yes, I did mean that. After returning a Window named "File", GetNextWindow()
was returning NULL.

Probably I had some error somewhere, but I switched to
GetFrontWindowOfClass() and GetNextWindowOfClass(), which seems to make more
sense for what I am trying to do, and all seems to be working well now.

Thanks,
- 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:
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: Eric Schlegel <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.