• 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
Enabling run-time-created submenus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: data->array (!@%$*)
  • Next by Date: [Q] SavePanel NSFileHandlingPanelCancelButton
  • Previous by thread: Re: Determining a file's "kind"
  • Next by thread: [Q] SavePanel NSFileHandlingPanelCancelButton
  • Index(es):
    • Date
    • Thread