Yup, that's right.
An object that has a delegate sends certain pre-defined messages to
the delegate at certain times. Those times are described by the name
of the delegate method. For example, "controlTextDidChange:" is sent
after the text in an NSControl changes. The naming convention i
Ok. Thanks for the reply - this may sound stupid but I haven't dealt
with delegates much. If I make the window controller the delegate
would I just declare a method in that window controller's files as
below?
- (void)controlTextDidChange:(NSNotification)notification
{
runMyFunction();
Give your text field a delegate, and in the delegate implement -
controlTextDidChange:.
See the docs for more details.
--Andy
On Apr 28, 2008, at 3:17 PM, Philip Bridson wrote:
Hi there,
I want to create a password analysis tool that updates an
NSLevelIndicator with each character entered i
Set a delegate for your text field and have it respond to
controlTextDidChange: (NSControl). That will be called every time the
text in the text field is modified.
On Apr 28, 2008, at 1:17 PM, Philip Bridson wrote:
I want to create a password analysis tool that updates an
NSLevelIndicator
Hi there,
I want to create a password analysis tool that updates an
NSLevelIndicator with each character entered into a
NSSecureTextField. I know how to update the NSLevelIndicator once the
user has finished entering text but how do i update it per character?
To give you a bit more info:
T