Contextual menu validateMenuItem
Contextual menu validateMenuItem
- Subject: Contextual menu validateMenuItem
- From: Mark Woollard <email@hidden>
- Date: Sun, 2 Nov 2003 17:05:39 +0000
I have a document with a parent window and attached drawer, on that
drawer I've put an NSOutlineView with a contextual menu (menu in nib,
link menu outlet of NSOutlineView to the menu). The menu appears fine
on ctrl-click but I can't figure out where I need to put the
validateMenuItem method so I can control the menu's appearance. I have
entered appropriate actions in First Responder and linked the menus
items to these. I have tried putting implementations of these actions
along with in both the Files Owner (NSDocument) and the drawer
controller and in either case validateMenuItem isn't called.
Where should the validate routine go? Or do I have to manually update
the menu's appearance?
Thanks
Mark
_______________________________________________
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.