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: Good Grief! Nscombobox problem :-)



On Jul 3, 2005, at 7:08 AM, Bob Studer wrote:

The best way of solving this in general is to not rely on the controls themselves to contain the state data. As soon as you set the state of the control or the user changes the state, store it in a variable. This way they always accessible.

You need to attach change handlers to all the controls that will be called when the state of each control changes. Inside that, get the current state and store it in the state variable associated with the control that has just changed state.

To follow up: When a tab is shown, fill the state of each control from your background state variables. Don't rely on the controls themselves to maintain the state when the tabs aren't shown.

    -Bob


PGP: 0x5A969850

---------------------

Trifles make perfection, and perfection is no trifle.

                -- Michelangelo


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

This email sent to email@hidden

References: 
 >Good Grief! Nscombobox problem :-) (From: Dean Shavit <email@hidden>)
 >Re: Good Grief! Nscombobox problem :-) (From: Bob Studer <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.