Re: re-making connections with a different controller

2009-06-10 Thread Quincey Morris
On Jun 10, 2009, at 07:40, Stephen Blinkhorn wrote: Can I make connections programmatically? That might be easier for now. It's catch-22, I think. You have to find all the controls that need their target set, and identify which target to use for which control. Normally, the easiest way t

Re: re-making connections with a different controller

2009-06-10 Thread Scott Andrew
One other thing to keep things simple.. Take all common functionality and put it into a base view controller class. Then subclass from there for any new controls, functionality, setup, etc. Scott On Jun 10, 2009, at 7:40 AM, Stephen Blinkhorn wrote: On 9 Jun 2009, at 22:44, Quincey Morris

Re: re-making connections with a different controller

2009-06-10 Thread Stephen Blinkhorn
On 9 Jun 2009, at 22:44, Quincey Morris wrote: On Jun 9, 2009, at 19:50, Stephen Blinkhorn wrote: If you must use a tab view, you could also approach it with a view xib and a view controller to define the common part of each tab. The view controller would act as an intermediary to pass the

Re: re-making connections with a different controller

2009-06-09 Thread Quincey Morris
On Jun 9, 2009, at 19:50, Stephen Blinkhorn wrote: If you must use a tab view, you could also approach it with a view xib and a view controller to define the common part of each tab. The view controller would act as an intermediary to pass the action methods on to the correct controller. (T

Re: re-making connections with a different controller

2009-06-09 Thread Graham Cox
On 10/06/2009, at 9:15 AM, Stephen Blinkhorn wrote: Perhaps this illustrates an underlying fundamental problem with the structure of my app but I don't want to know about that right now :) Well, ok, maybe I do... I think you recognise that this is indeed problematic... ;-) If the contro

Re: re-making connections with a different controller

2009-06-09 Thread Stephen Blinkhorn
On 9 Jun 2009, at 18:47, Quincey Morris wrote: In the absence of further information, it seems that a tab view is wrong approach here. If all the so-called tabs are identical in user interface terms (that is, the only difference is the data they retrieve from your data model), you'd probab

Re: re-making connections with a different controller

2009-06-09 Thread Quincey Morris
On Jun 9, 2009, at 16:15, Stephen Blinkhorn wrote: Imagine I have an NSTabView with 10 tabs that all contain the same collection of controls. The only difference is that each control's action/outlet is connected to a different controller object (of the same class type). Is it possible to

Re: re-making connections with a different controller

2009-06-09 Thread WT
Hi Stephen, one approach that I have successfully employed several times when having to do a substantial amount of dreadful and error-prone mechanical work on xib files, of the kind you're talking about, is to use a text-editor and do a search and replace on the contents of the xib file.

re-making connections with a different controller

2009-06-09 Thread Stephen Blinkhorn
Hi all, Imagine I have an NSTabView with 10 tabs that all contain the same collection of controls. The only difference is that each control's action/outlet is connected to a different controller object (of the same class type). Is it possible to select a whole tab of controls, copy them