Mailing Lists: Apple Mailing Lists

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

Re: Programmatically adding separator to NSPopupButton?



On Friday, May 18, 2001, at 09:22 pm, Dan Wood wrote:

I need to add a standard separator to the popup menu, but I'm not sure how to do it. I tried using @"-" as the argument for addItemWithTitle: but that just resulted in an item with "-" as its title.

[[oMyPopupMenu menu] addItem:[NSMenuItem separatorItem]];


Thanks. :-)


-M

--
Matt Ridley
<http://www.mattridley.com/>


References: 
 >Re: Programmatically adding separator to NSPopupButton? (From: Dan Wood <email@hidden>)



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.