Re: How to blink with a focus ring of the text box?
Re: How to blink with a focus ring of the text box?
- Subject: Re: How to blink with a focus ring of the text box?
- From: Peter <email@hidden>
- Date: Thu, 06 Oct 2011 17:53:02 +0200
Read carefully:
The original poster stated: "any more text" - or are you suggesting that he should disable the text box when a certain number of characters are reached? I guess not.
AFAIK, the focus ring is not accessible programmatically, except form setting it by making something the first responder.
You could use a text formatter or one of the validation methods and simply stop accepting key strokes, change the text color to red and/or display an alert.
Am 06.10.2011 um 17:43 schrieb Thomas Davie:
> The correct way to notify a user that he can't enter text in a text box is to disabled it.
>
> Bob
> if (*ra4 != 0xffc78948) { return false; }
>
> On 6 Oct 2011, at 16:33, Nick wrote:
>
>> Hello
>> I am wondering if there's a way to do this, notifying the user that he can't
>> enter any more text into NSTextField edit box?
>> Is there a way to change the color of the NSTextField's focus ring to red
>> (to highlight that this is an error)?
>> How difficult would that be to implement?
>> Thank you!
>> _______________________________________________
>>
>> 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