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

Re: popupbuttons


  • Subject: Re: popupbuttons
  • From: Stéphane Sudre <email@hidden>
  • Date: Wed, 20 Aug 2003 14:01:44 +0200

On mercredi, ao{ 20, 2003, at 09:00 Europe/Paris, April Gendill wrote:

Is there a limit to the number of items that can be in a popup menu
that I am not aware of?
I can get up to 9 items in the menu, but at 10 i get this error

\*** Assertion failure in -[NSMenu
insertItemWithTitle:action:keyEquivalent:atIndex:],
Menus.subproj/NSMenu.m:476
2003-08-19 23:10:33.590 XShuffler[3403] An uncaught exception was raised
2003-08-19 23:10:33.591 XShuffler[3403] Invalid parameter not
satisfying: (index >= 0) && (index <= (_itemArray ?
CFArrayGetCount(_itemArray) : 0))
2003-08-19 23:10:33.591 XShuffler[3403] *** Uncaught exception:
<NSInternalInconsistencyException> Invalid parameter not satisfying:
(index >= 0) && (index <= (_itemArray ? CFArrayGetCount(_itemArray) :
0))

XShuffler has exited due to signal 5 (SIGTRAP).


[chooseWM insertItemWithTitle:aString atIndex:theIndex]; is the command
I'm using to insert the items

is there a way around this limit?

The issue might be with the value of your index.

Why?

Because maybe you have 2 item with the same name and so the first one was removed which caused the number of the items in the menu not to be the one you think it is.
_______________________________________________
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: 
 >popupbuttons (From: April Gendill <email@hidden>)

  • Prev by Date: Re: Drag and drop promised files to Finder
  • Next by Date: Re: NSOutlineView question
  • Previous by thread: popupbuttons
  • Next by thread: Re: popupbuttons
  • Index(es):
    • Date
    • Thread