• 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
Bindings and File's Owner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Bindings and File's Owner
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: Re: SystemStatusBar question
  • Next by Date: Re: NSEnumerator retaining objects?
  • Previous by thread: Re: ANN: StepTalk OS-X - candidate 1
  • Next by thread: Re: Bindings and File's Owner
  • Index(es):
    • Date
    • Thread