On Nov 11, 2010, at 4:29 AM, Patrick Mau wrote:
> After all the setup, I add an observer to the NSClipView
> that is the scrollvies's contentView.
NSTableView already does this exact thing when it is set up properly. There
should be no need for you to do this yourself.
>
> The corresponding s
Hallo Jerry
Thanks a lot. You got me going ...
Here's what I did:
defaultCenter = [NSNotificationCenter defaultCenter];
[defaultCenter addObserver:self
selector:@selector(clipviewFrameChanged:)
name:NSViewFrameDidChangeNotification
On Nov 10, 2010, at 21:37, Kyle Sluder wrote:
> Table views do not require autoresize masks to size to fit their
> enclosing scroll view. Try it yourself: drag an NSTableView out to a
> window in IB and inspect its autoresize mask.
Well, OK, I stand corrected. Setting some of the column autoresiz
On Wed, Nov 10, 2010 at 9:25 PM, Quincey Morris
wrote:
>
> What am I missing, because the answer seems too easy? The table view won't
> resize automatically unless *its* 'autoresizingMask' tells it to do so, and
> you haven't set that. (You did set it for the scroll view, but that's a
> differe
On Nov 10, 2010, at 14:09, Patrick Mau wrote:
> The scrollview resizes along with my custom view, which is fine.
> This triggers a resize of the NSClipView, which is the contentView of the
> scrollview.
>
> The documentView's frame is obviously not affected.
>
> So someone must tell the tableVi
On 2010 Nov 10, at 14:09, Patrick Mau wrote:
> So someone must tell the tableView that it should resize its colums in
> response
> to a scrollview frame change.
Try poking it with -[NSTableView sizeLastColumnToFit] or -[NSTableView
sizeToFit].
___
Hallo Kyle
Thanks for your remarks, but that's not it (unfortunately, see below).
On 10.11.2010, at 22:54, Kyle Sluder wrote:
> On Wed, Nov 10, 2010 at 1:34 PM, Patrick Mau wrote:
>>
>> Hallo everyone
>>
>> When I embed an NSTableView in an NScrollView, everything works except
>> column auto-
On Wed, Nov 10, 2010 at 1:34 PM, Patrick Mau wrote:
>
> Hallo everyone
>
> When I embed an NSTableView in an NScrollView, everything works except
> column auto-resizing.
>
> What would trigger automatic column layout whenever the NSScrollView frame
> is reduced in size?
The columns need to fill t
Hallo everyone
When I embed an NSTableView in an NScrollView, everything works except
column auto-resizing.
What would trigger automatic column layout whenever the NSScrollView frame
is reduced in size?
I have a custom view that creates a NSScrollView and NSTableView:
- (id)initWithFrame:(NSRec