Re: Handling Undo/Redo in KVC To-Many Accessors
Re: Handling Undo/Redo in KVC To-Many Accessors
- Subject: Re: Handling Undo/Redo in KVC To-Many Accessors
- From: Scott Anguish <email@hidden>
- Date: Fri, 28 May 2004 00:44:39 -0400
On May 27, 2004, at 9:54 PM, Ashley Clark wrote:
I seem to recall a few posts from people complaining that when
removing the last entry of an array under the control of an array
controller which have that last item selected, it will spew out such
an "beyond bounds" error -- but I have not looked into it myself...
It's covered in Aaron Hillegass' book (2nd ed.) It doesn't give a
reason on the page, but p.127 says to uncheck the "Preserves selection"
checkbox of the NSArrayController. By doing that, the beyond bounds
errors I've been getting have disappeared.
it's been discussed here before.
if you change the array directly in such a manner that the bounds
change, and that would cause the current selection to be invalid, it'll
give you one of those.
bugs have been filed.
_______________________________________________
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.