Re: Button enabled.
Re: Button enabled.
- Subject: Re: Button enabled.
- From: Apparao <email@hidden>
- Date: Tue, 16 Oct 2007 11:23:12 +0530
Use Custom data formatters. Read the information available at the
following URL:
http://developer.apple.com/documentation/Cocoa/Conceptual/
DataFormatting/index.html?http://developer.apple.com/documentation/
Cocoa/Conceptual/DataFormatting/Articles/CreatingACustomFormatter.html
On Oct 16, 2007, at 11:10 AM, Michael Flack wrote:
Hi All,
I tried and searched the list extensively for something which seems
simple but doesnt seem to work for me.
My nib has a simple textbox and a button,
1) I want to bind my button to be enabled only iff their is sometext
typed into the textbox
2) Ideally I want as soon as I start typing into textbox it should
call a validate method and replace the value of the allowed value.
So say input to Textbox is "123abc" and only "abc" is valid:-
1) Button enables as soon as something is typed into textbox
2) As you type 123 nothing appear only abc ie the valid input appear
in the textbox.
*Want to achieve this through bindings, not the textbox callbacks.
TIA,
MiƧ
_______________________________________________
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:
40effigent.net
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