• 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: Andy Lee <email@hidden>
  • Date: Thu, 02 Jul 2009 01:11:19 -0400

On Jul 1, 2009, at 7:32 PM, Bill Cheeseman wrote:
NSButton does conform to the NSValidatedUserInterfaceItem protocol, as its header file confirms

According to the header file and documentation I'm looking at, NSButton conforms to the *other* protocol (NSUserInterfaceValidations), which is the one you implement when you want to validate, not be validated.


Nevertheless, I think I remember being confused by that documentation in exactly the same way, and I think it is very much worth a Radar. I've submitted rdar://problem/7026464, in which I make the following suggestions:

* Instead of the very general term "user interface items ", introduce the term "*validated* user interface items", or simply "validated items", which describes them precisely and forms a clear association with the protocol name PSValidatedUserInterfaceItem.

* Use the terms consistently everywhere -- on the "Implementing a Validated Item" page the term "validated objects" is used.

* To avoid confusion, make it clear that only NSMenuItem and NSToolbarItem (or whatever the list is) are validating [sic -- d'oh] items, though of course developers can implement others.


...I read mmalc's post before submitting the Radar (in fact I referred to the rdar he mentioned) but it only just now registered that he quotes a part of the docs that sort of says the thing about NSMenuItem and NSToolbarItem. But still I think it could be clearer, and might be worth stating in more than one place.


--Andy

_______________________________________________

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: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Programmatically adding to one big Finder selection ?
  • Next by Date: Re: NSComparisonResult and equality
  • 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