Re: Binding to a view's model object

2015-01-25 Thread Keary Suska
On Jan 25, 2015, at 6:07 PM, Roland King wrote: > >> On 25 Jan 2015, at 23:15, Keary Suska wrote: >> >> On Jan 25, 2015, at 3:34 AM, Roland King wrote: >> >>> I have a xib with a top-level view and a bunch of subviews which represents >>> one view of a given model object. The top-level NSV

Re: Binding to a view's model object

2015-01-25 Thread Roland King
> On 25 Jan 2015, at 23:15, Keary Suska wrote: > > On Jan 25, 2015, at 3:34 AM, Roland King wrote: > >> I have a xib with a top-level view and a bunch of subviews which represents >> one view of a given model object. The top-level NSView subclass has a >> readwrite property which is the mode

Re: Binding to a view's model object

2015-01-25 Thread Sandor Szatmari
I think you can bring an object controller into your xib from the IB pallet. Bind the content object of the controller to your NSView subclass and expose the binding of modelObject.someStringProperty through the object controller's attributes inspector panel. The all your subviews will bind to

Re: Binding to a view's model object

2015-01-25 Thread Jonathan Mitchell
> On 25 Jan 2015, at 10:34, Roland King wrote: > > I have a xib with a top-level view and a bunch of subviews which represents > one view of a given model object. The top-level NSView subclass has a > readwrite property which is the model object of which it's a view. I thought > this was a p

Re: Binding to a view's model object

2015-01-25 Thread Keary Suska
On Jan 25, 2015, at 3:34 AM, Roland King wrote: > I have a xib with a top-level view and a bunch of subviews which represents > one view of a given model object. The top-level NSView subclass has a > readwrite property which is the model object of which it's a view. I thought > this was a pret

Binding to a view's model object

2015-01-25 Thread Roland King
I have a xib with a top-level view and a bunch of subviews which represents one view of a given model object. The top-level NSView subclass has a readwrite property which is the model object of which it's a view. I thought this was a pretty standard pattern, especially in OSX which only just rec