• 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: Inserting into NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Inserting into NSArrayController (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Re: Is Cocoa incompatible with 64-bit?
  • Next by Date: NSCell Subclass Editing Weirdness
  • Previous by thread: Inserting into NSArrayController
  • Next by thread: Re: Inserting into NSArrayController
  • Index(es):
    • Date
    • Thread