Re: User interface validation doesn't work, right?
Re: User interface validation doesn't work, right?
- Subject: Re: User interface validation doesn't work, right?
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 23 Aug 2009 18:34:46 -0400
On Aug 23, 2009, at 9:39 AM, Houdah - ML Pierre Bernard wrote:
Just ran into the same problem and came up with HHValidatedButton:
http://www.bernard-web.com/pierre/blog/index.php?
id=6542976061063123843
I actually came up with the answer after this thread died (only
waiting for you to bring it back to life!).
It's way too complicated to spell it out here but, basically, -
validateUserInterfaceItem: has replaced the old -validateMenuItem:
method in Leopard and newer for menu items and it works the same way.
But for user controls like buttons you have to declare your own
protocol methods. It only takes half a dozen lines of code and it's
real easy to do -- and it works perfectly. The only problem is that it
isn't documented adequately, so you have to spend days find out how to
do something that takes 20 seconds once you know how. Same old same old.
--
Bill Cheeseman
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