• 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
Re: User interface validation doesn't work, right?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: User interface validation doesn't work, right? (From: Houdah - ML Pierre Bernard <email@hidden>)

  • Prev by Date: Solution: Dynamically creating an image with transparent portions.
  • Next by Date: Re: Core Animation + Garbage Collection
  • Previous by thread: Re: User interface validation doesn't work, right?
  • Next by thread: Making an NSTableView Display Articles From An RSS Feed.
  • Index(es):
    • Date
    • Thread