• 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
Re: Workaround for confirmed bug in NSArrayController of Panther?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Workaround for confirmed bug in NSArrayController of Panther? (From: Michael Monscheuer <email@hidden>)

  • Prev by Date: Workaround for confirmed bug in NSArrayController of Panther?
  • Next by Date: reordering NSTableView elements
  • Previous by thread: Workaround for confirmed bug in NSArrayController of Panther?
  • Next by thread: reordering NSTableView elements
  • Index(es):
    • Date
    • Thread