• 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: NSArrayController selection bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSArrayController selection bug?
      • From: Henrik Wittland <email@hidden>
References: 
 >NSArrayController selection bug? (From: Jesse Grosjean <email@hidden>)
 >Re: NSArrayController selection bug? (From: mmalcolm crawford <email@hidden>)
 >Re: NSArrayController selection bug? (From: Jesse Grosjean <email@hidden>)

  • Prev by Date: Re: NSXMLParser question
  • Next by Date: Re: AltiVec programming? Mailing list?
  • Previous by thread: Re: NSArrayController selection bug?
  • Next by thread: Re: NSArrayController selection bug?
  • Index(es):
    • Date
    • Thread