• 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
Re: NSPersistentDocument arrayController Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSPersistentDocument arrayController Data
      • From: Ian McGregor <email@hidden>
References: 
 >NSPersistentDocument arrayController Data (From: Ian McGregor <email@hidden>)

  • Prev by Date: How do I "globally" do a #define using X_Code ver 1.5
  • Next by Date: Crackpot Idea for Core Data Multi-User Document
  • Previous by thread: Re: NSPersistentDocument arrayController Data
  • Next by thread: Re: NSPersistentDocument arrayController Data
  • Index(es):
    • Date
    • Thread