[Project_owners] prefwindow/prefpane randomness

Matthew Wilson matthew at mjwilson.demon.co.uk
Thu Mar 9 18:23:26 EST 2006

Paul Tomlin wrote:
> Matthew Waymost wrote:
>> I think <menupopup/> needs to be outside the template. Your code 
>> creates a <menupopup/> for every <menuitem/> generated by the template.
> That little snippet hasn't changed in ages (that I recall) and works 
> fine outside of a "src"'d prefpane.
> When I put it into an external prefpane the _most_ I can get it to do it 
> create a single entry in the list, and that only happens after the 
> second-ish time of opening the <prefwindow /> (navigating between panes 
> doesn't seem to make it generate).
> When I include the code directly into the same file as the <prefwindow 
> /> then it works as expected.
> All that aside, I remember that bit of code being a bit of a copy/paste 
> affair without me really understanding templates...

There are some problems in prefpanes in 1.5 and For example, a 
template backed by an RDF datasource can't be refreshed, and you can't 
find the length of a listbox. So you may be hitting a bug which is fixed 
in the forthcoming

Matthew Wilson

More information about the Project_owners mailing list