NSTextField & Hidden Binding Problem
NSTextField & Hidden Binding Problem
- Subject: NSTextField & Hidden Binding Problem
- From: Thaddeus Cooper <email@hidden>
- Date: Wed, 15 Nov 2006 16:37:22 -0800
Hi All --
I have an NSTextField in a tab view that is the "label" ("Password:")
for a NSTextField that the user can type in. I only want these two
text fields to be visible when a certain object is selected in the
array controller. I bound the hidden binding of both of them to a
method in the app delegate customSMTPServerSelected. The text field
that the user can type in appears and disappears appropriately, but
the "label" is always visible -- which is not the behavior I want.
What do I need to do to make the "label" become hidden when the
selected object in the array controller changes? I've considered
using setKeys:triggerChangeNotificationsForDependentKey: but I'm not
sure that's the way to do this.
Any help would be greatly appreciated.
Thanks very much.
-- Thaddeus O. Cooper
(email@hidden)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden