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

2008-09-16 Thread Alex Kac
Perfect - I appreciate it. On Sep 16, 2008, at 10:11 PM, Jonathan Hess wrote: Hey Alex - If your controller is the File's Owner, and in your NIB there is a connection connecting the the File's Owner's 'myButton' outlet to a button, then when you load the nib, the controller's myButton in

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

2008-09-16 Thread Jonathan Hess
Hey Alex - If your controller is the File's Owner, and in your NIB there is a connection connecting the the File's Owner's 'myButton' outlet to a button, then when you load the nib, the controller's myButton instance variable will be connected to the button in the nib. So far, everything

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

2008-09-16 Thread Ken Thomases
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 th

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

2008-09-16 Thread Keary Suska
9/16/08 4:33 PM, also sprach [EMAIL PROTECTED]: > I have two views that are different layouts of the same UI loaded by a > NSViewController. Now lets say that I have an IBOutlet to an NSButton* > button1 that is present in both views. I want to swap one view out for > the other and when I do so ha

Swapping IB-created views and keeping IBOutlets hooked up

2008-09-16 Thread Alex Kac
I have two views that are different layouts of the same UI loaded by a NSViewController. Now lets say that I have an IBOutlet to an NSButton* button1 that is present in both views. I want to swap one view out for the other and when I do so have the IBOutlet for button1 swap to the button1 d