• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextField with NSLevelIndicator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField with NSLevelIndicator


  • Subject: Re: NSTextField with NSLevelIndicator
  • From: Philip Bridson <email@hidden>
  • Date: Mon, 28 Apr 2008 14:06:27 -0700

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();
}

Sorry if I seem stupid but as I say I don't use them much.

Thanks,

Phil

On Monday, April 28, 2008, at 08:34PM, "Andy Lee" <email@hidden> wrote:
>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 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:
>>
>> The text is passed to a function: the function returns a value: the
>> value is used to update the level indicator.
>>
>> This works fine but I can only do it once the whole word is in the
>> field. How do I pass characters as they are entered to my func? Such
>> as:
>>
>> 1. P
>> 2. Pa
>> 3. Pas
>> 4. Pass
>> 5. Passw
>> 6. Passwo
>> 7. Passwor
>> 8. Password
>>
>> Thank you for any help you might give.
>>
>> Phil.
>>>
>>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>_______________________________________________
>
>Cocoa-dev mailing list (email@hidden)
>
>Please do not post admin requests or moderator comments to the list.
>Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
>Help/Unsubscribe/Update your Subscription:
>
>This email sent to email@hidden
>
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTextField with NSLevelIndicator
      • From: Andy Lee <email@hidden>
References: 
 >NSTextField with NSLevelIndicator (From: Philip Bridson <email@hidden>)
 >Re: NSTextField with NSLevelIndicator (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: CALayer + flickering redraw.
  • Next by Date: Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?
  • Previous by thread: Re: NSTextField with NSLevelIndicator
  • Next by thread: Re: NSTextField with NSLevelIndicator
  • Index(es):
    • Date
    • Thread