From: pere.noel@... (=?ISO-8859-1?Q?Une_b=E9vue?=) Date: 2006-02-11T18:48:23+09:00 Subject: Re: [RubyCocoa] setting the items of anÊNSPopUpButton programmatically Dave Howell wrote: > I "removeAllItems" because there are some in it when I create it in > InterfaceBuilder, and I just didn't care to bother figuring out how to > place a completely empty pop-up button. :) Also, I sometimes refresh > it, and just emptying it and refilling from scratch is easier than > modifying what's there. > > I'm sure there are other ways to do this as well. fine, thanks, i didn't notice the "s" in "removeAllItems", i have to learn how to read the classes/methods browser (AppKiDo) ;-) because i'm using a loop : @choixTheme.removeAllItems @prefs.themes_list.each { |theme| @choixTheme.addItemWithTitle theme.label } -- une b�vue