NSTableView wants the 0th Row!?
NSTableView wants the 0th Row!?
- Subject: NSTableView wants the 0th Row!?
- From: Jay Prince <email@hidden>
- Date: Fri, 23 May 2003 11:28:36 -0700
I have an NSTableView for which the data is stored in an NSArray.
Sometimes, when the table goes from having data, to having no data to
display, the NSTableView will call tableViewObjectValueForLocation for
the 0th row. IT knows there is no data, because it called
numberOfRowsInTableView immediately prior...
Any ideas what's causing this? I can put a check in
tableViewObjectValueForLocation and return null if there's no data...
but it seems odd that it is acting this way.
Here's my log:
FXTableDataSource: numberOfRowsInTableView: 0
FXTableDataSource: numberOfRowsInTableView: 0
FXTableDataSource: numberOfRowsInTableView: 0
FXTableDataSource: numberOfRowsInTableView: 0
2003-05-23 11:21:41.886 SoundfishClient[3827] NSRangeException: ***
-[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)
Stack Trace:
NSRangeException: *** -[NSCFArray objectAtIndex:]: index (0) beyond
bounds (0)
at com.apple.cocoa.foundation.NSArray.objectAtIndex(Native Method)
at
FXTableDataSource.tableViewObjectValueForLocation(FXTableDataSource.java
:293)
Jay
_______________________________________________
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.