Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 10:32 am, Quincey Morris quinceymor...@rivergatesoftware.com wrote: Er, what exactly was bound to what? In the cell-based table, the table's (sole) column's Font Size is bound to the shared user defaults controller with a Controller Key of values and Model Key Path of

Re: Bindings in view-based tables

2015-03-05 Thread Quincey Morris
On Mar 5, 2015, at 15:20 , Shane Stanley sstan...@myriad-com.com.au wrote: The same value was used via bindings to set the Font Size in the table. Er, what exactly was bound to what? In the view-based version, the text field would typically be bound to ‘objectValue.something’ (or possibly

Re: Bindings in view-based tables

2015-03-05 Thread Quincey Morris
On Mar 5, 2015, at 17:06 , Ken Thomases k...@codeweavers.com wrote: Unfortunately, the solution is clumsy. You have to use a separate view NIB for the table cell view. That means you can't really design the view-based table in the NIB that contains the table view. The table view is in

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 12:06 pm, Ken Thomases k...@codeweavers.com wrote: It seems you can't delete the cell view that's under the table column in the first NIB. It also seems that the row height is based on its height. -- Shane Stanley sstan...@myriad-com.com.au

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 4:25 pm, Ken Thomases k...@codeweavers.com wrote: So you're saying it's a bug? I think the bug is that IB hides the existence of the sub-NIB. If IB presented the sub-NIB with all of the usual placeholders and put a Shared User Defaults Controller into it when you set a

Bindings in view-based tables

2015-03-05 Thread Shane Stanley
I'm converting a cell-based table to a view-based table in an old project. It contains a pair of buttons, Big and Small, that set a value in user defaults to 13 or 11. The same value was used via bindings to set the Font Size in the table. It worked fine with a cell-based table, but I'm having

Re: Bindings in view-based tables

2015-03-05 Thread Quincey Morris
On Mar 5, 2015, at 16:09 , Shane Stanley sstan...@myriad-com.com.au wrote: In the cell-based table, the table's (sole) column's Font Size is bound to the shared user defaults controller with a Controller Key of values and Model Key Path of tableTextSize. The buttons are in a radio group,

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 12:06 pm, Ken Thomases k...@codeweavers.com wrote: I _think_ connections to File's Owner are restored when the cell view NIB is loaded, but the File's Owner of the sub-NIB may not be the same as the File's Owner of the outer NIB. It may not even be the same class. It may

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 11:42 am, Quincey Morris quinceymor...@rivergatesoftware.com wrote: Are you sure that the user defaults are being maintained properly? Does choosing from the radio buttons actually change the user defaults? Is the text field size getting set “manually” from somewhere else

Re: Bindings in view-based tables

2015-03-05 Thread Graham Cox
On 6 Mar 2015, at 4:25 pm, Ken Thomases k...@codeweavers.com wrote: So you're saying it's a bug? I think the bug is that IB hides the existence of the sub-NIB. If IB presented the sub-NIB with all of the usual placeholders and put a Shared User Defaults Controller into it when you set

Re: Bindings in view-based tables

2015-03-05 Thread Ken Thomases
On Mar 5, 2015, at 6:09 PM, Shane Stanley sstan...@myriad-com.com.au wrote: On 6 Mar 2015, at 10:32 am, Quincey Morris quinceymor...@rivergatesoftware.com wrote: Er, what exactly was bound to what? In the cell-based table, the table's (sole) column's Font Size is bound to the shared

Re: Bindings in view-based tables

2015-03-05 Thread Ken Thomases
On Mar 5, 2015, at 8:15 PM, Shane Stanley sstan...@myriad-com.com.au wrote: On 6 Mar 2015, at 12:06 pm, Ken Thomases k...@codeweavers.com wrote: I _think_ connections to File's Owner are restored when the cell view NIB is loaded, but the File's Owner of the sub-NIB may not be the same as