Getting NSArrayController content after application launch
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