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
b...@cheeseman.name

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to