• 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
Threaded data freaking out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Threaded data freaking out


  • Subject: Threaded data freaking out
  • From: spike <email@hidden>
  • Date: Fri, 7 Mar 2003 18:23:30 -0500

I've got an app that uses NSTableView and it's threaded. I get

*** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)

I've been using the debugger and the only 2 arrays that I'm using I got the data for using po and they both have like 5000 items in them (like they're supposed to).

The line of code that's wigging out is:

BOOL isMissing = [[fileSizes objectAtIndex: row] isKindOfClass: [NSString class]];

it just checks to see if the fileSizes item is a string (@"n/a") in which case it will color it red in the list... I even have a test to make sure that row is within the bounds of my 2 arrays. I can't figure out why this is happening. Just thinking that maybe one of you guys have seen something like this before and recognize or have an idea of what I'm doing wrong.

TIA.


...spike
_______________________________________________
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.

  • Follow-Ups:
    • Re: Threaded data freaking out
      • From: Chris Hanson <email@hidden>
  • Prev by Date: directory size
  • Next by Date: Re: Threaded data freaking out
  • Previous by thread: directory size
  • Next by thread: Re: Threaded data freaking out
  • Index(es):
    • Date
    • Thread