• 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
Re: NSTableView or NSArray Troubles...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView or NSArray Troubles...


  • Subject: Re: NSTableView or NSArray Troubles...
  • From: Ian Gillespie <email@hidden>
  • Date: Wed, 11 Dec 2002 13:31:52 -0800

Thanks for responding. Where should I put the [NSException raise];
line of code?

On Wednesday, Dec 11, 2002, at 12:49 US/Pacific, Clark S. Cox III wrote:

>
> On Wednesday, Dec 11, 2002, at 14:48 US/Eastern, Ian Gillespie wrote:
>
>> OK, I have a document based app which was working fine for a long time
>> when I noticed that if I tried to delete the last row in the table I
>> would get a -[NSCFArray objectAtIndex:]: index (2) beyond bounds (2)
>> error. This used to not happen, the error occurred in my method when
>> after I remove the object from my array and I call [tableView
>> reloadData].
>>
>> Now, when I try to open a new document I get a -[NSCFArray
>> objectAtIndex:]: index (0) beyond bounds (0). However, if during my
>> init method in my NSDocument subclass I add an object to the array
>> everything is fine, until of course I try to delete the object from
>> the
>> table view. What I can't figure out is that everything seemed to be
>> working fine and now it isn't; I can't think of anything that I did to
>> make this happen (but I probably did do something). I should say that
>> my table view is subclassed, but this did NOT start happening right
>> after I created my subclass or anything.
>
> To help you track down the problem, run your program in the debugger,
> and put a breakpoint at -[NSException raise]. Then, when this
> assertion fires, you should break into the debugger. You can then
> inspect the stack trace to see exactly where the offending call was
> made.
>
>


___________________________
Ian G. Gillespie
Dept. of Botany & Plant Sciences
University of California
Riverside, CA 92521
http://student.ucr.edu/~gillei01
___________________________
_______________________________________________
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: NSTableView or NSArray Troubles...
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >Re: NSTableView or NSArray Troubles... (From: "Clark S. Cox III" <email@hidden>)

  • Prev by Date: Re: Pixel level drawing in Cocoa
  • Next by Date: Re: NSTableView or NSArray Troubles...
  • Previous by thread: Re: NSTableView or NSArray Troubles...
  • Next by thread: Re: NSTableView or NSArray Troubles...
  • Index(es):
    • Date
    • Thread