• 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, 1 Jul 2009 21:02:38 -0700


On Jul 1, 2009, at 6:15 PM, Keary Suska wrote:

No, I am saying that it works as advertised for objects that it works for. NSButton is not one of them, and never has been. You seem to assume that all user interface items should, but they don't, and never have, and the documentation has never said that they did. The documentation is explicit:
"The protocols NSUserInterfaceValidations and NSValidatedUserInterfaceItem provide a standard way to validate user interface items—that is, to set their state as appropriate for the current application context"


The documentation does state that, and the reference for NSValidatedUserInterfaceItem further states:

"The NSValidatedUserInterfaceItem protocol works with theNSUserInterfaceValidations protocol to enable or disable a control automatically, depending on whether any responder in the responder chain can handle the control’s action method. The NSMenuItem and NSToolbarItem classes implement this protocol."
<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSValidatedUserInterfaceItem_Protocol/Reference/Reference.html#//apple_ref/occ/intf/NSValidatedUserInterfaceItem >


so...

On Jul 1, 2009, at 4:33 PM, Bill Cheeseman wrote:
But it doesn't work at all for user controls in general, and the docs are misleading (i.e., wrong) about that.


although I'm not sure I'd agree with Bill that the docs are *wrong*, they certainly could be more helpful in making it clear what the limitations are, so I'd still suggest filing an enhancement request.
(Hmm, or appending to '<rdar://problem/2801472> UIValidation: Need a bit more context', which is easily old enough to go to Summer Camp this year...)


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


  • Follow-Ups:
    • Re: User interface validation doesn't work, right?
      • From: Bill Cheeseman <email@hidden>
References: 
 >User interface validation doesn't work, right? (From: Bill Cheeseman <email@hidden>)
 >Re: User interface validation doesn't work, right? (From: Keary Suska <email@hidden>)
 >Re: User interface validation doesn't work, right? (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Dynamically loading a part of a Window in Cocoa
  • Next by Date: Re: NSLog / Console / Console Messages
  • 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