Skip navigation.
 
mlWhen in the launch cycle does coredata data become available.
FROM : Adam Gerson
DATE : Mon Mar 03 03:36:59 2008

I am trying to programatically get some data from an array controller
when my program launches.

NSArray *allServers = [serverLibraryArrayController arrangedObjects];

This code works just fine with I invoke it with a button click.
However, if I put it in awakeFromNib or ApplicationDidFInishLaunching
it returns nil.

What method can I use so that this action is done automatically when
the program launches, but after core data has loaded data into the
array controller?

Thanks,
Adam

Related mailsAuthorDate
mlWhen in the launch cycle does coredata data become available. Adam Gerson Mar 3, 03:36
mlRe: When in the launch cycle does coredata data become available. mmalc crawford Mar 3, 03:59
mlRe: When in the launch cycle does coredata data become available. Adam Gerson Mar 3, 06:43
mlRe: When in the launch cycle does coredata data become available. Conor Mar 3, 11:27
mlRe: When in the launch cycle does coredata data become available. mmalc crawford Mar 3, 17:30
mlRe: When in the launch cycle does coredata data become available. Adam Gerson Mar 4, 01:45