Menu validation in Panther
Menu validation in Panther
- Subject: Menu validation in Panther
- From: Christopher Holland <email@hidden>
- Date: Fri, 3 Oct 2003 17:13:14 -0500
Sorry if I am talking about Panther but I don't really know of a better
list to do it (there isn't an NDA list that I know of).
Anyway, I have noticed a change in the way that Panther handles
menu/submenu validation as compared to previous releases of the system.
I wouldn't call this a bug....just a change.
Previously, if you had an NSMenuItem that had a submenu attached to it
then it didn't have to have an action. 'nil' would suffice. In Panther,
you must give the "parent" menuItem a valid action before it will
validate....regardless of what your validator object tells it.
Shouldn't this be considered wrong? Isn't that the whole idea behind
validators is that they are the ones that do the validation. I haven't
found a spot in the docs that says that an item has to have a valid
action...just that the validator must exist and answer calls to it.
I'm probably missing something here, of course...that's usually the
case.
This isn't a big deal for me, I've already fixed the code, but it could
be a problem in someone else's case.
Christopher Holland
Concept House email@hidden
home:<
http://www.concepthouse.com/ >
weblog: <
http://exordium.concepthouse.com/ >
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.