• 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
KVO, TableViews and Undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KVO, TableViews and Undo


  • Subject: KVO, TableViews and Undo
  • From: Cornelius Jaeger <email@hidden>
  • Date: Wed, 8 Dec 2004 16:34:03 +0100

hi list,

i've implemented undo in a kvo app.
i get error messages of the type:

2004-12-08 16:29:42.545 SF Task Manager[1227] *** -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)
2004-12-08 16:29:44.025 SF Task Manager[1227] undo: NSUndoManager 0x30e570 is in invalid state, undo was called with too many nested undo groups


iff, a row in the table is selected
if i manually deselect the rows every time i hit command-z it works very well. if a row is selected and i try to undo the insert of that row i get the above errors.
the first after hitting undo once, the second after hitting undo twice.


is this a bug or do i have an error in my code.
it's pretty much copied from aaron's book.


thx

cornelius

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Drag and drop color swatches
  • Next by Date: Re: If statement evaluation with logical AND
  • Previous by thread: Printing a PDF file
  • Next by thread: Confused about bindings and NSTableView
  • Index(es):
    • Date
    • Thread