• 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
Getting NSArrayController content after application launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting NSArrayController content after application launch


  • Subject: Getting NSArrayController content after application launch
  • From: Michael Grützner <email@hidden>
  • Date: Sat, 29 Dec 2007 20:07:00 +0100

Hi,

I have a small Core-Data application which uses an NSArrayController to manage
a collection of entites. Adding and removing works fine. My application has a StatusItem
in the StatusBar and I want to select the entities from the NSArrayController via the
menu.
When I call [myController arrangedObjects] in the awakeFromNib method of my ApplicationController
it returns an empty array. I guess this is because the data hasn't been loaded (when I
call the method later in the app it returns an array with all the entities). So my question is:
How can I get the content of the NSArrayController after it has loaded its content?


Thank you very much in advance.

Best regards,
Michael
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Getting NSArrayController content after application launch
      • From: mmalc crawford <email@hidden>
    • Re: Getting NSArrayController content after application launch
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: bundleWithIdentifier: failures
  • Next by Date: Re: bundleWithIdentifier: failures
  • Previous by thread: Re: NSImage <-> CIImage problems...
  • Next by thread: Re: Getting NSArrayController content after application launch
  • Index(es):
    • Date
    • Thread