NStableView and delegate to heightOfRow
NStableView and delegate to heightOfRow
- Subject: NStableView and delegate to heightOfRow
- From: Håvard Sørbø <email@hidden>
- Date: Sat, 29 Jul 2006 19:40:51 +0200
Hi!
I'm quite new in the cocoa world, but I have stumbled upon a problem.
That is, if there are more than 63632 rows in my tableview and I'm
using a delegate to heightOfRow, my program hangs.
here is an example:
(First subclassed an NSObject in IB, and bound it to a tableviews
datasource and delegate)
#import "MyObject.h"
@implementation MyObject
- (int) numberOfRowsInTableView: (NSTableView *)table { return
63633; } //Change to 63632 and it works!
- (float) tableView:(NSTableView *)tableView heightOfRow:(int)row
{ return 160.0; }
@end
I know I'm not implementing tableView:objectValueForTableColumn:row:,
but It's not needed for a minimalist example.
Is there any obvious mistakes done by me? Could this be a bug?
xcode version: 2.2
example project: http://folk.ntnu.no/havarsor/test2.dmg
Best Regards
Håvard Sørbø _______________________________________________
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