• 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
Cocoa Bindings, NSControllers, Source Lists and Multiple Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa Bindings, NSControllers, Source Lists and Multiple Selection


  • Subject: Cocoa Bindings, NSControllers, Source Lists and Multiple Selection
  • From: Matt Freels <email@hidden>
  • Date: Mon, 16 Oct 2006 23:40:50 +0200

Hi all,

I'm currently trying to implement a Core Data application with what amounts to two entities: a Data entity, and a group entity with a many->one relationship with the data entity.

i have two table views set up, a source list which is bound to the Group NSArrayController, and a data list which is bound to the Data NSArrayController

my problem comes from trying to allow multiple source selection. I have the data NSArrayController's contentSet bound the Group's selection.dataset, and contentArrayForMultipleSelection bound to email@hiddenet

my problem is that I keep getting this exception:
-[NSCFArray objectAtIndex:]: index (2) beyond bounds (2)

switching from source to source in the app works fine. multiple select works fine, as long as i only add extra sources. when a source is deselected, the data table stops updating and then the app crashes if you click on data table.

Does anyone know what i'm doing wrong based off of that, or if not, can anyone point me to a sample project that has multiple select source lists?

Thanks!

Matt

_______________________________________________
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


  • Prev by Date: Core Data Object doesn't seem to be deleted
  • Next by Date: playing a quicktime movie in a QTMovieView
  • Previous by thread: Core Data Object doesn't seem to be deleted
  • Next by thread: playing a quicktime movie in a QTMovieView
  • Index(es):
    • Date
    • Thread