Skip navigation.
 
mlRe: NSTableView, NSArrayController, NSManagedObjectContext
FROM : I. Savant
DATE : Tue Jan 01 19:24:48 2008

On Jan 1, 2008, at 1:02 PM, Ture Pålsson wrote:

>>  Have you tried telling your *Array Controller* to -fetch: at this
>> point?

>
> No. I was under the impression that the NSArrayController would watch
> "its" moc for changes and update automagically (because the
> "automatically prepares content" flag is set for the controller). Is
> this not the case?


  Hmm ... the documentation says of that flag:

"Sets whether the receiver automatically creates and inserts new 
content objects automatically when loading from a nib file."

  ... and ...

"If ... a managed object context is set, the initial content is 
fetched from the managed object context using the current fetch 
predicate."

  Doesn't sound like it works the way you described to me ... ;-)

--
I.S.