This is MiscTabMatrixPalette.m in view mode; [Download] [Up]
// Copyright (C) 1995 // Use is governed by the MiscKit license #import "MiscTabMatrixPalette.h" #import "MiscTabActionCell.subproj/MiscTabActionCell.h" @implementation MiscTabMatrixPalette - finishInstantiate { NXRect frameRect; Matrix *newMatrix; [matrix getFrame:&frameRect]; newMatrix = [[Matrix allocFromZone:[self zone]] initFrame:&frameRect mode:NX_RADIOMODE prototype:[[MiscTabActionCell allocFromZone:[self zone]] initTextCell:"Folder Tab"] numRows:1 numCols:2]; [[matrix superview] replaceSubview:matrix with:newMatrix]; [matrix free]; matrix = newMatrix; // set the background gray of tabMatrix to NX_DKGRAY [matrix setBackgroundGray:NX_DKGRAY]; // set the autosizing and autoscrolling attributes of the matrix [matrix setAutosizing:NX_WIDTHSIZABLE]; [matrix setAutoscroll:YES]; // size tabMatrix to its cells, resize matrix so that nice NX_DKGRAY border // frames tabs, and display it [matrix sizeToFit]; [matrix setAutosizeCells:YES]; [matrix sizeBy:0.0 :4.0]; [matrix display]; return self; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.