• 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: Bindings and KVO of View objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings and KVO of View objects


  • Subject: Re: Bindings and KVO of View objects
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 20 May 2009 13:08:06 -0400

On Wed, May 20, 2009 at 12:37 PM, Ken Thomases <email@hidden> wrote:
> While target-action is perfectly fine for what you're trying to do, I would
> point out that controller's can have properties, too.  Binding UI to a
> property of your controller is another good way to handle this situation.
>  It leaves the responsibility in the same place -- the controller -- but
> does what bindings usually do: removes boilerplate glue code.

And remember that your custom NSWindowController subclass is indeed a
view-controller, and therefore a perfectly fine place to add your
properties or other such logic.  This is usually the first place I
look at implementing any custom UI controller behavior, and it's
usually the first class to get subclassed anyway, as a matter of
course.

--Kyle Sluder
_______________________________________________

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: Bindings and KVO of View objects (From: Stuart Malin <email@hidden>)
 >Re: Bindings and KVO of View objects (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Bindings and KVO of View objects
  • Next by Date: Re: CGRectUnion with one empty Rectangle
  • Previous by thread: Re: Bindings and KVO of View objects
  • Next by thread: Re: Bindings and KVO of View objects
  • Index(es):
    • Date
    • Thread