• 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
Button enabled.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Button enabled.


  • Subject: Button enabled.
  • From: "Michael Flack" <email@hidden>
  • Date: Mon, 15 Oct 2007 22:40:06 -0700

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Button enabled.
      • From: Apparao <email@hidden>
  • Prev by Date: Re: Class vs +class: Cocoa/Obj-C design question
  • Next by Date: Re: Button enabled.
  • Previous by thread: Re: TableView not loading completely
  • Next by thread: Re: Button enabled.
  • Index(es):
    • Date
    • Thread