Re: NSArrayController selection bug?
Re: NSArrayController selection bug?
- Subject: Re: NSArrayController selection bug?
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 10 Nov 2003 18:18:32 -0800
On Nov 10, 2003, at 2:49 PM, Jesse Grosjean wrote:
I've added an extra action to your test application ("remove UMA") that
will show the problem. Add a few objects, and then, making sure that
the last object in the tableview is selected, click the new "remove
UMA" button. You should see an index of of bounds exception.
It appears that there is indeed a bug here -- if you haven't already,
Jesse would you please report it?
I would suggest, however, that given this the appropriate workaround is
(as originally suggested) to message the array controller:
[theArrayController removeObjectAtArrangedObjectIndex:0];
This does not exhibit the bug, does not subvert the API, and does not
require you to create copies of the array. YMMV.
mmalc
_______________________________________________
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.