[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSOutlineView ignores the outlineTableColumn's position
From: |
Gregory Casamento |
Subject: |
Re: NSOutlineView ignores the outlineTableColumn's position |
Date: |
Thu, 25 Apr 2002 21:30:27 -0700 (PDT) |
Applied this to NSOutlineView..
--- Alexander Malmberg <alexander@malmberg.org> wrote:
> Hi,
>
> When [NSOutlineView -mouseDown] checks for a click on the
> expand/collapse image, it ignores the outlineTableColumn's position.
> Thus, it only works if the outlineTableColumn is the first column. I've
> attached a patch that fixes this. (The trigger-zone for the image still
> seems a bit off, though.)
>
> Also, the patch changes the default for indentationMarkerFollowsCell to
> YES, like the docs say.
>
> - Alexander Malmberg> Index: NSOutlineView.m
> ===================================================================
> RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSOutlineView.m,v
> retrieving revision 1.21
> diff -u -r1.21 NSOutlineView.m
> --- NSOutlineView.m 18 Apr 2002 22:44:04 -0000 1.21
> +++ NSOutlineView.m 21 Apr 2002 23:42:28 -0000
> @@ -119,7 +119,7 @@
> [super initWithFrame: frame];
>
> // Initial values
> - _indentationMarkerFollowsCell = NO;
> + _indentationMarkerFollowsCell = YES;
> _autoResizesOutlineColumn = NO;
> _autosaveExpandedItems = NO;
> _indentationPerLevel = 0.0;
> @@ -867,7 +867,9 @@
> {
> position = _indentationPerLevel * level;
> }
> -
> +
> + position += _columnOrigins[_clickedColumn];
> +
> if(location.x >= position && location.x <= position + [image
> size].width)
> {
> if(![self isItemExpanded: [self itemAtRow: _clickedRow]])
>
=====
Gregory John Casamento
------------------------------------------------------
Please sign the petition against software patents at:
http://www.petitiononline.com/pasp01/petition.html
------------------------------------------------------
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/