NSBrowser problems
NSBrowser problems
- Subject: NSBrowser problems
- From: Charles Françoise <email@hidden>
- Date: Wed, 15 Dec 2004 15:48:52 +0200
I'm using the NSBrowser to display 3 columns of data. It works pretty well, but I think I must be doing something wrong because the design seems just strange. For example, to create the data for column 1 I do :
matrix = [browser matrixInColumn:1];
0;i<[matrix numberOfRows];i++)
[matrix removeRow:i];
while (currentElement = [cardsEnumerator nextObject]) {
exists = NO;
names = [matrix cells];
name = [currentElement... (very long useless line)
i=-1;
while (++i<[names count] && !exists) {
if([name isEqualToString:[[names objectAtIndex:i] stringValue]])
exists = YES;
}
if(!exists) {
[matrix addRow];
[browser selectRow:[matrix numberOfRows]-1 inColumn:1];
[[browser selectedCell] setStringValue:name];
}
}
[browser selectRow:0 inColumn:1];
[browser selectCell:[browser selectedCellInColumn:0]];
Somehow, I'm sure there's a better way to do this.
And another thing is : I have a display problem with my NSBrowser. The scrollbar appears funny in column 0. I put it on my web server at http://chrales.ath.cx/Picture 2.jpg
Has anyone worked with NSBrowser ? And seen these problems ?
Thanks, everyone
charles
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden