• 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
NStableView and delegate to heightOfRow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NStableView and delegate to heightOfRow
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Cocoa bug? Arrow keys stop working in table view
  • Next by Date: Re: What is the fastest way to find all files associated with particular application?
  • Previous by thread: Re: Co-ordinate systems
  • Next by thread: Re: NStableView and delegate to heightOfRow
  • Index(es):
    • Date
    • Thread