• 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: Johnny Lundy <email@hidden>
  • Date: Sun, 25 May 2008 03:15:09 -0400

Well, tell that to the guy who wrote the Currency Converter Using Bindings tutorial. See the last sentence here:

"This concrete example should help you understand what the value binding’s configuration implies: The content of the text field is bound to the value of the exchangeRate key, which Cocoa bindings finds on the model object using key-value coding. Cocoa bindings knows to look for that key in the model object that is bound to thecontent outlet of the controller specified by the Bind to aspect—in this example, the controller is theNSObjectController instance you configured earlier, whose content outlet points to the Converter object you instantiated in the nib file."

And you wonder why I am still confused. That paragraph from Apple directly contradicts what you just said.

The Converter object is continually referred to as the Model Object. That is exactly how mine are set up - connected to the Controller Object. The tutorial says nothing about File's Owner.

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.

Despite teaching OB/GYN for 17 years, this is why computer science is always my main interest. I've written firmware before we called it firmware. I have never NOT been able to grasp something until this and bindings. Aaron says lots of people have trouble understanding File's Owner, so I can only conclude that it's the documentation, or lack thereof.

And yes, I have read that MVC thing over and over and over.




On May 25, 2008, at 2:12 AM, email@hidden wrote:


My NSArrayControllers can be bound to model objects without anything going through File's Owner.

Really? That implies that your model is contained within the nib, which is not how MVC is supposed to work. The nib should contain the V (View) and possibly C (Controller) parts of MVC, but it should not contain the M (Model).

_______________________________________________

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


  • Follow-Ups:
    • Re: File's Owner
      • From: Graham Cox <email@hidden>
    • Re: File's Owner
      • From: mmalc crawford <email@hidden>
    • Re: File's Owner
      • From: Paul Thomas <email@hidden>
    • Re: File's Owner
      • From: Ken Thomases <email@hidden>
    • Re: File's Owner
      • From: Jens Alfke <email@hidden>
    • Re: File's Owner
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Faster way to test pixels?
  • Next by Date: Re: Spaces causes sheet to go behind parent window
  • Previous by thread: Re: File's Owner
  • Next by thread: Re: File's Owner
  • Index(es):
    • Date
    • Thread