• 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: separatorItem in NSPopUpButton?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: separatorItem in NSPopUpButton?


  • Subject: Re: separatorItem in NSPopUpButton?
  • From: Dan Watson <email@hidden>
  • Date: Fri, 6 Jul 2001 10:40:13 -0400

try something like this:

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

dan

On Friday, July 6, 2001, at 10:24 AM, j o a r wrote:

Hello,

In IB it is possible to add separator items to the menu of a NSPopUpButton. When I try to do the following in code (using the syntax for a normal menu):

[presetsMenu addItem:[NSMenuItem separatorItem]];

I get this result:

Jul 06 16:18:53 Extensions Manager X[2811] An uncaught exception was raised
Jul 06 16:18:53 Extensions Manager X[2811] *** -[NSPopUpButton addItem:]: selector not recognized
Jul 06 16:18:53 Extensions Manager X[2811] *** Uncaught exception: <NSInvalidArgumentException> *** -[NSPopUpButton addItem:]: selector not recognized

Isn't it possible to add a separator through code?

Regards,

j o a r
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: separatorItem in NSPopUpButton? [solution]
      • From: j o a r <email@hidden>
References: 
 >separatorItem in NSPopUpButton? (From: j o a r <email@hidden>)

  • Prev by Date: Re: Is there a good way to do this (or even possible)?
  • Next by Date: Packaging Omni frameworks for distribution.
  • Previous by thread: separatorItem in NSPopUpButton?
  • Next by thread: Re: separatorItem in NSPopUpButton? [solution]
  • Index(es):
    • Date
    • Thread