Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting NSArrayController content after application launch



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.