Re: Programmatically adding separator to NSPopupButton?
Re: Programmatically adding separator to NSPopupButton?
- Subject: Re: Programmatically adding separator to NSPopupButton?
- From: Andrew Platzer <email@hidden>
- Date: Fri, 18 May 2001 17:14:53 -0700
On Friday, May 18, 2001, at 11:23 , Matt Ridley wrote:
I've been using NSPopupButton's addItemWithTitle: method to dynamically
construct a popup menu. 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.
[[popupButton menu] addItem:[NSMenuItem separatorItem]];
Andrew
__________________________________________________________________
A n d r e w P l a t z e r
A p p l i c a t i o n F r a m e w o r k s
A p p l e