coredata during startup
coredata during startup
- Subject: coredata during startup
- From: Benjámin Salánki <email@hidden>
- Date: Mon, 15 Aug 2005 20:43:18 +0200
Dear List,
in the application i am writing (CoreData Application) i have some
code in my awakeFromNib method that tries to create an NSArray from
records of entity called Addresses.
I use the following code:
NSMutableArray *array = [NSMutableArray arrayWithArray:
(NSArray*)[[[NSApp delegate] addressesArray] arrangedObjects]];
where addressesArray is an NSArrayController that i have set up in
InterfaceBuilder that is bound to the NSManagedObjectContext and uses
the Addresses entity.
Now when i run this code from my awakeFromNib method (or the
applicationDidFinishLaunching: in the application delegate) i get
nil. When i try to run the code during runtime though, i get the
desired results.
Does anyone know what the problem might be?
Thanks,
Ben
_______________________________________________
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