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: Determining a view's latent visibility



Matt Gough <email@hidden> wrote:

  *  HIViewIsLatentlyVisible()


* Mac OS X: in version 10.4 and later in Carbon.framework

But what about 10.3? AFAIK there's no way to do it there.

Was there ever an answer to this? I'm in the middle of updating some code that used to rely on the old-style meaning of IsControlVisible and need to work with at least 10.3 (and maybe 10.2).

My imperfect workaround is as follows:

* I wrote a wrapper around HIViewSetVisible that also, on pre-Tiger systems, sets a control property to record how the visibility was set.

* I wrote a IsLatentlyVisible function that, on pre-Tiger systems, looks for that control property. If the property is not set, it falls back to IsControlVisible.

Obviously, you have to be careful not to change visibility without using the wrapper.
--
James W. Walker, ScriptPerfection Enterprises, Inc.
<http://www.write-brain.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: Determining a view's latent visibility (From: Matt Gough <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.