« Return to Thread: [squeak-dev] Problem with OBPackageBrowser

Re: [squeak-dev] Problem with OBPackageBrowser

by David Röthlisberger-2 :: Rate this Message:

Reply to Author | View in Thread

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



 « Return to Thread: [squeak-dev] Problem with OBPackageBrowser

LightInTheBox - Buy quality products at wholesale price!