• 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: mmalc Crawford <email@hidden>
  • Date: Wed, 01 Jul 2009 14:56:57 -0700


On Jul 1, 2009, at 2:24 PM, Bill Cheeseman wrote:

For years, the "Implementing Validation" section of Apple's "User Interface Validation" document has said the following:
"Before it is displayed, a user interface item checks to see if its target implements validateUserInterfaceItem:. If it does, then the enabled status of the item is determined by the return value of the method. You can therefore conditionally enable or disable an item by implementing validateUserInterfaceItem: in the target object."
This has never been true. Right?



It depends on the sort of user interface element. This does work for menu items and tab bar items...

Attachment: ValidateItem.zip
Description: Zip archive



Please file a documentation enhancement request to clarify.

mmalc


_______________________________________________

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: 
 >User interface validation doesn't work, right? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: warning:assignment from distinct Objective-C type
  • Next by Date: Re: UIImageView source
  • Previous by thread: Re: User interface validation doesn't work, right?
  • Next by thread: Re: User Interface Validation doesn't work, right?
  • Index(es):
    • Date
    • Thread