Re: Table of TextViews

2014-10-18 Thread Ken Thomases
On Oct 15, 2014, at 6:40 AM, Charles Jenkins cejw...@gmail.com wrote: Thanks for looking it over. :-) I guess I misunderstood the documentation. I thought if you dragged out a table view from the palette into a NIB, you got a full hierarchy of objects (including the extra scroll view I

Re: Table of TextViews

2014-10-15 Thread Ken Thomases
On Oct 14, 2014, at 7:49 AM, Charles Jenkins cejw...@gmail.com wrote: I’m going to take this step by step. Would you comment on my NSTextView subclass and tell me if something is wrong in the way I’ve set it up to size itself, notify itself, or pass along size-change notifications? I don't

Re: Table of TextViews

2014-10-15 Thread Charles Jenkins
Ken, Thanks for looking it over. :-) I guess I misunderstood the documentation. I thought if you dragged out a table view from the palette into a NIB, you got a full hierarchy of objects (including the extra scroll view I specifically don’t want), but if you created it programmatically you

Re: Table of TextViews

2014-10-15 Thread Charles Jenkins
Of course in the penultimate paragraph I meant I redesigned the TEXT VIEW this way to filter notifications. I never seem to find typos until after my posts appear… :-/ -- Charles On Wednesday, October 15, 2014 at 7:40, Charles Jenkins wrote: Ken, Thanks for looking it over. :-) I

Re: Table of TextViews

2014-10-14 Thread Charles Jenkins
Can I ask you folks to look over and comment on this code? I think I’ve set up the text view and text container correctly to track the size of the text they contain, and I can notify my table view delegate when their size changes. The problem I’m having is that the table view delegate can note

Re: Table of TextViews

2014-10-14 Thread Charles Jenkins
Oops. When I pulled out this example code from the rest of my project, I mistyped something. Here is a corrected line: CGFloat hd = newFrame.size.height - oldFrame.size.height; -- Charles On Tuesday, October 14, 2014 at 8:49, Charles Jenkins wrote: Can I ask you folks to look over and

Re: Table of TextViews

2014-10-09 Thread Charles Jenkins
Thank you, Ken. Originally I started out by implementing the table view using a data source and delegate. With some help from list members, I got that working pretty well except for row height. I only started my latest test app using NSArrayController and bindings because I mistakenly thought

Re: Table of TextViews

2014-10-09 Thread Keary Suska
On Oct 9, 2014, at 7:40 AM, Charles Jenkins cejw...@gmail.com wrote: Thank you, Ken. Originally I started out by implementing the table view using a data source and delegate. With some help from list members, I got that working pretty well except for row height. I only started my latest test

Re: Table of TextViews

2014-10-09 Thread Charles Jenkins
Well, I was imprecise. I didn’t literally mean the text view would directly change the table view. Right now the text container and text view adjust automatically to fit the text, but my code isn’t told about any changes, so I have no opportunity to do anything to change the table view. But

Re: Table of TextViews

2014-10-09 Thread Ken Thomases
On Oct 9, 2014, at 11:19 AM, Charles Jenkins cejw...@gmail.com wrote: Well, I was imprecise. I didn’t literally mean the text view would directly change the table view. Right now the text container and text view adjust automatically to fit the text, but my code isn’t told about any changes,

Table of TextViews

2014-10-08 Thread Charles Jenkins
I’m still struggling to create a single scrollview containing a stack of textviews. I created an object called “Subdocument” which has two important readonly properties: NSTextView* myView CGFloat myHeight myHeight returns myView's frame hight, but never less than 10. The Subdocument’s

Re: Table of TextViews

2014-10-08 Thread Ken Thomases
On Oct 8, 2014, at 8:59 PM, Charles Jenkins cejw...@gmail.com wrote: Now I try to bind the table. I select the Table View object and bind Table Content to the array controller’s arrangedObjects myView key path. Then I bind its Row Height to the array controller’s arrangedObjects myHeight key