Re: NSOutlineView and horizontal scroll bar problem
Re: NSOutlineView and horizontal scroll bar problem
- Subject: Re: NSOutlineView and horizontal scroll bar problem
- From: Chuck Soper <email@hidden>
- Date: Thu, 8 Jul 2004 14:15:21 -0700
I don't know but, I would first try calling it from this delegate:
- (void)outlineViewSelectionDidChange:(NSNotification *)notification
If that works then you have proof of concept and you could fine tune
how often you call reloadChildren.
Chuck
At 1:35 PM -0700 7/8/04, David Alter wrote:
Chuck
Thanks for the tip. I had not tried calling -
(void)reloadItem:(id)item reloadChildren:(BOOL)reloadChildren. Now
I'm trying to do that but having a hard time identifying when I
should call it. My first reaction is I should call it from -
(void)outlineViewItemDidExpand:(NSNotification *)notification when
the item expands. But when this is called I do not have the "item"
(data object) or row that was expanded, and I'm not clear on how I
would walk the list to get these items. Do you have any suggestions
from where I might want to call - (void)reloadItem:(id)item
reloadChildren:(BOOL)reloadChildren from.
thank again for the help
--David
On Jul 8, 2004, at 11:36 AM, Chuck Soper wrote:
Yo David,
Did you try sending the following message to your outline view?
- (void)reloadItem:(id)item reloadChildren:(BOOL)reloadChildren
Chuck
At 11:10 AM -0700 7/8/04, David Alter wrote:
Hi all,
I have a NSOutlineView inside a NSScrollView. The outline view is
configured with a horizontal scroll bar and "Autoresize columns to
fit" in IB. As I open the disclosure triangles the NSSrollView is
aware that the data has gotten wider but it is only aware that is
wider by the width of the disclosure triangle ( 16 pixels ). That
is nice but the width of the cells data is my real issue. The
cells data (text) in some case is long and the horizontal scroll
bar does not take into account for the size of the data. This
appears to be a bug, but I still need a work around. Does anyone
have any ideas on this?
thank you for the help
David Alter
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.