[squeak-dev] Problem with OBPackageBrowser

David Röthlisberger squeak at webcitas.ch
Wed May 7 18:54:14 UTC 2008


Hi,

> I'm having different behaivor between OBSystemBrowser and 
> OBPackageBrowser, in this case:

> OBPackageBrowser new
>     open;
>     jumpTo: (OBClassCategoryNode on: 'Sushimoto')
> 
> Throws a DNU #isDescendantOfClass: in #isAncestorOf:using:

The problem is that the package browser does not display class categories, but 
Monticello packages. This means it cannot handle traditional ClassCategoryNodes. It 
should display a better error msg than a DNU though.

What you can do is using OBMonticelloClassCategoryNode instead of OBClassCategoryNode:

eg.:
OBPackageBrowser new
     open;
     jumpTo: (OBMonticelloClassCategoryNode on: 'Sushimoto').

This should work.

The difference between OBMonticelloClassCategoryNode and OBClassCategoryNode is that 
the former knows about the Monticello package it belongs to, it also gets displayed 
below the package, while the latter doesn't know anything about packages.

Cheers,
David





More information about the Squeak-dev mailing list