• 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: Swapping IB-created views and keeping IBOutlets hooked up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swapping IB-created views and keeping IBOutlets hooked up


  • Subject: Re: Swapping IB-created views and keeping IBOutlets hooked up
  • From: Ken Thomases <email@hidden>
  • Date: Tue, 16 Sep 2008 18:11:44 -0500

On Sep 16, 2008, at 5:33 PM, Alex Kac wrote:

I have two views that are different layouts of the same UI loaded by a NSViewController.

Is that one view controller managing two views? Or two view controllers, one for each view?


In the second case (which makes more sense to me), I'd have the window controller (or other coordinating controller) reference the desired button through the currently swapped-in view controller. I wouldn't have the window/coordinating controller keep an outlet to the button(s) at all.

Cheers,
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: 
 >Swapping IB-created views and keeping IBOutlets hooked up (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: Drawing on Another App's CGDisplayCapture
  • Next by Date: Re: NSOutlineView: Which row is selected.
  • Previous by thread: Re: Swapping IB-created views and keeping IBOutlets hooked up
  • Next by thread: Re: Swapping IB-created views and keeping IBOutlets hooked up
  • Index(es):
    • Date
    • Thread