Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopUpButton Limitation?



NSPopupButton seems to break when you try to use it with a menu that has submenus. The menu looks good and all the submenus popup correctly, but I can't find a way to find out which item was selected. The methods to get the selected item don't seem to work on submenus.

If I want a NSPopupButton with submenus, is it possible? Is it possible to subclass NSPopupButton and make this work? How could I create a menu, pop it up when the user clicked and figure out which item was selected?

steve




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.