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

NSTableView or NSArray Troubles...


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

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.

Thanks for any help or suggesions.
Ian
_______________________________________________
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>
  • Prev by Date: Re: buttonType in NSButton
  • Next by Date: Re: Nib establishConnection Question
  • Previous by thread: Re: OTHER_CFLAGS being silently ignored
  • Next by thread: Re: NSTableView or NSArray Troubles...
  • Index(es):
    • Date
    • Thread