• 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
Re: PopupButton help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >PopupButton help (From: Kurt Marek <email@hidden>)
 >Re: PopupButton help (From: Chris Garaffa <email@hidden>)

  • Prev by Date: Re: Capturing slider movement in NSSlider
  • Next by Date: Re: Capturing slider movement in NSSlider
  • Previous by thread: Re: PopupButton help
  • Next by thread: Re: PopupButton help
  • Index(es):
    • Date
    • Thread