Bindings and File's Owner
Bindings and File's Owner
- Subject: Bindings and File's Owner
- From: Chris Outwin <email@hidden>
- Date: Wed, 9 Mar 2005 17:30:27 -0600
I am trying to understand the correct bindings architecture that will allow an NSDocument app to save data without causing a memory leak. After reading about problems of having a subclass of NSDocument or NSWindowController as the file owner, I'd like to ask this question:
What is the architecture that would allow setContent in a NSArrayController to access the NSMutableArray of model objects in my NSDocument subclass. This seems possible as suggested at: http://www.cocoabuilder.com/archive/message/2004/7/28/113081 which states "
<x-tad-bigger>If you just had one model object or one object that contains all of your model objects (like your document object) you could probably just set the content of the NSObjectController to be that object."</x-tad-bigger>
(My app lazily allocates the associated nib and allows users to add and modify model objects in the array.)
Thank you very much.
_______________________________________________
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