• 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 wants the 0th Row!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Mounting remote volumes with encryption
  • Next by Date: Linking a menu item between two different classes
  • Previous by thread: Mounting remote volumes with encryption
  • Next by thread: Linking a menu item between two different classes
  • Index(es):
    • Date
    • Thread