• 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: Window/Controller, View/Controller, View ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window/Controller, View/Controller, View ?


  • Subject: Re: Window/Controller, View/Controller, View ?
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 01 Feb 2012 12:42:57 -0600

On 1 Feb 2012, at 11:13 AM, Erik Stainsby wrote:

> Where would that be introduced into the hierarchy ? As the File Owner of the View ? Or as an ObjectController added into the View ?  Are you suggesting substitution or addition to the tree.

By "that," I assume you mean the NSObjectController. NSViewControllers have to load NIB files. Add the object controller to the top level of the NIB. In (again) simple cases, you don't even need to link it to an outlet of File's Owner.

But consider Quincey's point about direct binding (which doesn't vitiate my main point, that NSViewController can be useful without subclassing).

	— F

_______________________________________________

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: Window/Controller, View/Controller, View ? (From: Fritz Anderson <email@hidden>)
 >Re: Window/Controller, View/Controller, View ? (From: Erik Stainsby <email@hidden>)

  • Prev by Date: Re: Selected text in NSTextField
  • Next by Date: selectedTag binding weirdness
  • Previous by thread: Re: Window/Controller, View/Controller, View ?
  • Next by thread: Re: Window/Controller, View/Controller, View ?
  • Index(es):
    • Date
    • Thread