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 12:32 AM, Dean Shavit wrote:

The problem is that when I try the same with another NsComboList that lives
in a different NsTabViewItem, then it doesn't work at all. Whichever
NsComboList is call fist is the one that works. The one following goes
"deaf." Both are being called from within the OnClicked theObject.

Any ideas how to make both NsComboLists work? TIA!

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.

    -Bob


PGP: 0x5A969850

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

I tend to think of [Mac] OS X as Linux with QA and Taste.

             -James Gosling, Java Architect


 _______________________________________________
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>)



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.