• 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: IB connections with view swapping?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB connections with view swapping?


  • Subject: Re: IB connections with view swapping?
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 20 Aug 2009 11:06:07 -0700

On Thu, Aug 20, 2009 at 10:39 AM, Oftenwrong
Soong<email@hidden> wrote:
> The nib file's owner is the view controller, not MyDocument. Is it best to bind to my model via the view controller's representedObject?

That's what it's for.

> Also I'll need a few Target/Actions. Should I subclass NSViewController, put the actions in the subclass, and then forward them to MyDocument? Or is there a nicer way?

Typically people patch the view controller into the responder chain.
Even with that—and even programs that don't swap views around at
all—sometimes your window or view controller will need to respond to
an action and then turn around and send out a different action to a
specific object.

--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: 
 >IB connections with view swapping? (From: Oftenwrong Soong <email@hidden>)

  • Prev by Date: Re: Force crash a cocoa app for Crash Reporter testing
  • Next by Date: Re: Force crash a cocoa app for Crash Reporter testing
  • Previous by thread: IB connections with view swapping?
  • Next by thread: How to disable the table view when search bar is active
  • Index(es):
    • Date
    • Thread