NSSecureTextField and IB Bindings
NSSecureTextField and IB Bindings
- Subject: NSSecureTextField and IB Bindings
- From: Ken Victor <email@hidden>
- Date: Fri, 1 Oct 2004 08:44:42 -0700
i have a modal panel that contains two password entry text fields and
an ok button. the ok button is only supposed to be enabled if the two
text fields contain the same (non empty) text. i've set this all up
in IB and with bindings and a dependent key and the text fields are
set to continuously update model value.
this all works as it should if my two text fields are NSTextField.
however, if i set them to be NSSecureTextField (via the custom class
panel in IB), then my dependent key routine only gets called when i
leave one of the text fields, not continuously. it also seems to get
called if i return to one of my text fields and make certain edits:
eg, if text field one is "abc" and text field 2 is "abcd" if i tab
out and then back into text field 2 and then delete the last
character, my dependent key is called.
i'm still a cocoa newbie and readily admit that i don't have a full
grasp of bindings yet. so...
has anyone else seen this problem with NSSecureTextField? is it a
known bug? or is it deliberate for some reason that isn't obvious to
me? and in either case, can anyone suggest a simple workaround? (i
suspect i could set up delegates for my text fields and call my
enabling key myself upon receiving text did change notification, but
it seems to me that there is probably a simpler approach using
bindings.)
thanx,
ken
_______________________________________________
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