NSTableView and validateMenuItem:
NSTableView and validateMenuItem:
- Subject: NSTableView and validateMenuItem:
- From: Keith Renz <email@hidden>
- Date: Wed, 7 May 2003 00:30:31 -0400
Please tell me if this is the best route...
I want to validate the Select All menu item for an NSTableView.
NSTableView responds to the selectAll: action before my NSController
subclass, so I need to subclass NSTableView in order to implement
validateMenuItem: for the selectAll: selector. It appears that
NSTableView does not implement validateMenuItem:, so there's no need to
call super from my subclass if my subclass doesn't handle a selector
(like Print, which NSTableView also responds to). (If I do, I get an
exception.) I would prefer to disconnect selectAll: from my NSTableView
subclass and handle validation through my NSController subclass (like
other Edit menu items), but I'm not sure how to do this, or if I did,
if it's a good idea.
Thanks,
Keith
_______________________________________________
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.