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

Re: File's Owner


  • Subject: Re: File's Owner
  • From: Ken Thomases <email@hidden>
  • Date: Sun, 25 May 2008 03:17:09 -0500

On May 25, 2008, at 2:15 AM, Johnny Lundy wrote:

And, if I don't understand something, I will ask why. This is not magic - there is actual computer code behind that File's Owner concept, and it is deterministic, not vague, not abstract, not a philosophical enigma, not random, not ambiguous. If I had the source code I could see what it does.

But your most recent emails explain that you already understand _what_ it does, and you were only confused about the why! Looking at the source code wouldn't help with the why.


As I attempted to explain, you will come to understand the why with experience. Since you seem vexed about not understanding it now, I suggested that you take a look at some of the sample code which uses File's Owner in non-trivial ways. I also provided a quickie conceptual example of an application which presents one model in two views.

Another quickie conceptual example: the classic document-based application architecture. In that architecture, you often re-use a single nib, loading it repeatedly. That nib describes the interface for a single document. But the application can open multiple documents. That is, it has multiple models. Note that in this case, the model can't live in the nib -- it's coming from a document file somewhere. Each time the application loads the nib for a document's interface, the new objects from that nib have to connect up to a different model/document. They do this through the File's Owner, which is a different object for each loading of the nib.

-Ken
_______________________________________________

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


References: 
 >Re: File's Owner (From: Johnny Lundy <email@hidden>)

  • Prev by Date: Re: File's Owner
  • Next by Date: Re: File's Owner
  • Previous by thread: Re: File's Owner
  • Next by thread: Re: File's Owner
  • Index(es):
    • Date
    • Thread