Skip navigation.
 
mlNSTableView strangeness?
FROM : Hasan Diwan
DATE : Thu Dec 12 17:58:04 2002

   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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlNSTableView strangeness? Hasan Diwan Dec 12, 17:58
mlRe: NSTableView strangeness? Mike Ferris Dec 12, 18:50