khinsen / WikiForGToolkit

DEPRECATED: Wiki infrastructure for the GToolkit environment. Use Lepiter instead (part of GToolkit)
MIT License
4 stars 2 forks source link

What is a Wiki?! #3

Closed seandenigris closed 3 years ago

seandenigris commented 4 years ago

I'm finding it confusing that both "classes that use TWkClassWiki" as well as WkClassWiki seem to be referred to conceptually as Wiki. I was trying to revive TAPWikis index view:

gtPagesFor: aView
    <gtView>
    <gtClassView>
    ^ aView list
        title: 'Pages' translated;
        priority: -9;
        items: [ self wiki pageNames collect: [ :pn | self wiki page: pn ] ];
        itemText: [ :page | page name ]

because I find it a useful supplement to the wiki browser's main view, but I ran into a situation where sometimes wiki seemed to return my custom wiki class and sometimes to aWkClassWiki, neither of which understood wikiPageNamed: which caused an error.