Validating User Interface Items
Validating User Interface Items
- Subject: Validating User Interface Items
- From: "Douglas A. Welton" <email@hidden>
- Date: Wed, 17 Mar 2004 15:42:40 -0500
Does anyone have sample code that clearly illustrates how to automatically
enable or disable a user interface item?
I am having problems getting a button "validated". My application UI
contains several tables, a search field, and some text field. The UI also
has several buttons that I would like to auto-enable or auto-disable based
on the view (table, search field or text field) that is currently selected.
My approach is to have the target buttons conforming to the
NSValidatedUserInterfaceItem protocol and my UI controller adopting the
NSUserInterfaceValidations protocol. Obviously, this doesn't work... my
validateUserInterfaceItem: method is never getting called.
I have read the documentation for "Validating Objects" (several times), but
the documentation isn't helping me at this time.
Any suggestions?
thanks,
douglas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.