🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by Simon Alexander GREGORY Sun, 09 Aug 1992 01:29
NXBrowser problems
#510
Author: Simon Alexander GREGORY
Date: Sun, 09 Aug 1992 01:29
70 lines
2973 bytes
Please reply to ede978e@monu6.cc.monash.edu.au 

I am getting the following errors with my NXBrowser instance when 
I click on a branch.

Aug  9 11:10:24 steffi Romper[1149]: Exception handlers were not properly remove
d.

My browser: fillMatrix: inColumn: looks like this.

Its not OOP since I haven't create and instantiated a separate class for each
delegate of a browser.

- (int)browser:sender fillMatrix:matrix inColumn:(int)column
{
    int row;
    int count = 0;
    NXBrowserCell *cell;    
    String *employeeName;
    String *roomDescription;    
          
    if ([sender isEqual:employees]) {
        count = [employeesList count];
        for (row = 0; row < count; row++) {
            [matrix addRow];
            cell = [matrix cellAt: row: 0];
            employeeName = [[employeesList objectAt: row] employeeName];
            [cell setStringValue:[employeeName str]];
            [cell setLeaf:YES];
            [cell setLoaded:YES];
        }
    }
    else if ([sender isEqual:rooms]) {
            if (column == 0) {        
                count = [roomsList count];    
                for (row = 0; row < count; row++) {
                    [matrix addRow];
                    cell = [matrix cellAt:row :0];
                    roomDescription = [[roomsList objectAt: row] roomDescription];
                    [cell setStringValue:[roomDescription str]];      
                    [cell setLeaf:NO];
                    [cell setLoaded:YES];
                }
            }
            else {
                String *employeesRoom;
                int empCount = [employeesList count];
                const char *roomDescription;
                Employee *anEmployee;
                
                roomDescription = [[[sender matrixInColumn:column-1] selectedCell] stringValue];
                for (row = 0; row < empCount; row++) {
                    anEmployee = [employeesList objectAt:row];
                    employeesRoom = [anEmployee employeeRoom];
                    if (![employeesRoom compareSTR:roomDescription]) {
                        [matrix addRow];
                        cell = [matrix cellAt:row :0];
                        [cell setStringValue:[[anEmployee employeeName] str]];
                        [cell setLeaf:YES];
                        [cell setLoaded:YES];
                        count++;
                    }
                }
            }
        }
      
    return count; 
}

Any ideas???
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads