• 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
coredata during startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: coredata during startup
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: An Xcode question
  • Next by Date: Re: NEWBIE: Connecting up all those Ms, Vs and Cs
  • Previous by thread: Re: File choose context info problem
  • Next by thread: Re: coredata during startup
  • Index(es):
    • Date
    • Thread