Re: Workaround for confirmed bug in NSArrayController of Panther?
Re: Workaround for confirmed bug in NSArrayController of Panther?
- Subject: Re: Workaround for confirmed bug in NSArrayController of Panther?
- From: Leonard Budney <email@hidden>
- Date: Thu, 26 May 2005 11:46:21 -0400
On May 26, 2005, at 11:17 AM, Michael Monscheuer wrote:
Taken from AppKit release notes:
- In the Panther implementation, when removing objects in the
background from the array to which an NSArrayController content was
bound (not removing through the controller), an index-out-of-bounds
exception was sometimes raised. This situation has been fixed for
Tiger.
Did anyone found a workaround for this?
I desperately need this to work with panther...
I believe I ran into this, though I thought it was my fault. What I
did was call the array controller's
removeObjectAtArrangedObjectIndex: method, instead of calling the
array's removeObjectAtIndex: directly. I had this problem on Tiger, BTW.
If you do that, just remember to work with the array returned by
arrangedObjects:, not with the underlying array.
--Len.
_______________________________________________
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