Re: PopupButton help
Re: PopupButton help
- Subject: Re: PopupButton help
- From: j o a r <email@hidden>
- Date: Tue, 9 Dec 2003 18:21:33 +0100
On 2003-12-09, at 17.56, Chris Garaffa wrote:
>
> 2) How do I put in a divider?
>
Use NSMenu's addItem to add [NSMenuItem separatorItem]:
>
[someMenu addItem: [NSMenuItem separatorItem]];
I wouldn't do that, as the documentation states:
"Avoid invoking methods on the NSMenu object directly, but instead
invoke methods on the NSPopUpButton, which may need to do some
housekeeping before invoking the appropriate methods on the NSMenu."
<
http://developer.apple.com/documentation/Cocoa/Conceptual/MenuList/
Concepts/HowPopUpButtonsWork.html>
j o a r
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.