Re: Inserting into NSArrayController
Re: Inserting into NSArrayController
- Subject: Re: Inserting into NSArrayController
- From: Joshua Scott Emmons <email@hidden>
- Date: Mon, 27 Jun 2005 20:04:04 -0400
I've got an NSArrayController that's bound to a Core Data entity.
It is set to "Selects inserted objects", which works fine when I
bind a control to the array controller's add: action.
However, if I add an entity using NSEntityDescription's
insertNewObjectForEntityName:inManagedContext: it doesn't select
the newly inserted object.
It doesn't select the object, or you can't programatically detect
that it's selected the object? If the latter, it might just be that
you are checking the selected value too quickly. There is some sort
of delay between when an element is inserted and the array controller
selects it. See the thread "NSArrayController: delay in setting
selection, inserting item?" posted yesterday for a description of the
problem as well as some workarounds. No explanation though.
The inner workings of NSArrayController are still very much a mystery
to me. Let me know if you discover anything ;-)
Cheers,
-Joshua Emmons
_______________________________________________
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