Re: NSPersistentDocument arrayController Data
Re: NSPersistentDocument arrayController Data
- Subject: Re: NSPersistentDocument arrayController Data
- From: Charilaos Skiadas <email@hidden>
- Date: Fri, 5 Aug 2005 15:08:36 -0500
On Aug 5, 2005, at 12:50 PM, Ian McGregor wrote:
When an NSPersistentDocument subclass is loaded, and I attempt to a
access the arrangedObjects in a bound NSArrayController, the array
controller does not appear to contain any data yet. I am attempting
access at the windowControllerDidLoadNib stage.
Which method /delegate/stage should I use to be sure the
NSArrayController is ready to give me access to the stored data
(arrangedObjects)? I'd like to perform actions on the array
controller's arrangedObjects each time a document is loaded.
Can you be more specific what actions you want to perform on the
arrangedObjects? Keep in mind that data is loaded only as needed, so
I'm not even sure that arrangedObjects will contain what you expect
it to. In sort, if you explain what you are trying to do, maybe we
can offer another, simpler, way out.
Maybe you can intercept these objects at another stage?
Also, what makes you think that when the window controller has loaded
the nib, the document has already been loaded as well?
Haris
_______________________________________________
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