• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSBrowser problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSBrowser problems
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: NSMatrix Datasource?
  • Next by Date: Re: one document at a time
  • Previous by thread: Re: NSSocketPort bug?
  • Next by thread: Re: NSBrowser problems
  • Index(es):
    • Date
    • Thread