Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NStableView and delegate to heightOfRow



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.