Enabling run-time-created submenus
Enabling run-time-created submenus
- Subject: Enabling run-time-created submenus
- From: Kirk Kerekes <email@hidden>
- Date: Fri, 14 Jun 2002 19:56:24 -0500
Just in case there is someone else who has been trying to make
run-time-created submenus work, but can't get the new items to enable to
save your bleepin' life ...
Don't forget to set the _target_ of each menu item, as well as the _action_.
For some reason (which I'm sure someone will soon explain) neither of the
initializers for NSMenuItem have an argument for setting the target, making
it easy to forget this essential element.
"I'm not stupid, some things are just... naah, sometimes I'm just stupid."
-- not Aaron Hillegass.
_______________________________________________
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.