NSTableView strangeness?
NSTableView strangeness?
- Subject: NSTableView strangeness?
- From: Hasan Diwan <email@hidden>
- Date: Thu, 12 Dec 2002 11:58:04 -0500
I have an NSTableView which I'm filling with records beyond its
visible length. If anArray is loaded from a file, the scrollbars aren't
active. If I insert an object somewhere in the tableView using [anArray
insertObject:atIndex:]; [tableView reloadData], they become active. The
dataSource is an NSMutableArray. The datasource methods are given below:
- (int)numberOfRowsInTableView:(NSTableView *)t {
return [anArray count];
}
- (id)tableView:(NSTableView *)t
objectValueForTableColumn:(NSTableColumn *)aTC row:(int)rowIndex {
id theRecord, theValue;
theRecord = [anArray objectAtIndex:rowIndex];
theValue = [theRecord objectForKey:[aTC identifier]];
return theValue;
}
Hasan Diwan
OpenPGP KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA 4225 F166 40C2 BE42 DCA6
http://www.cs.rpi.edu/~diwanh/gpg.key
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.