bugs in NSBrowser

Hi,

I’ve got two issues with NSBrowser. I think they’re bugs (not exhaustively tested).

1 - Studio Reference says:
“At application startup time, handlers connected to the application object are called in this order:
will finish launching
awake from nib
launched
will become active
activated
idle”
However, “on number of browser rows” appears to be called before any of these.

2 - “on will display browser cell” only returns cells pertinent to the rightmost column. If you’re scrolling down column ‘rightmost-minus-one’, cells are displayed that actually belong in the rightmost column.

Workaround for problem (1):
Although “on number of browser rows” will still be called prematurely, adding this line at the top of the method will avoid engaging your code until the window “main” is visible.

if visible of window "main" is false then return false

Perhaps a more generic workaround would involve setting a global variable (“hasActivated”) in the “on activated” handler, then testing hasActivated when “on number of browser rows” is called.

Can you think of a workaround for problem (2)?

Thanks,

Dave.