• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOutlineView Bad Scrolling Behavior (Solved))
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView Bad Scrolling Behavior (Solved))


  • Subject: Re: NSOutlineView Bad Scrolling Behavior (Solved))
  • From: Gordon Apple <email@hidden>
  • Date: Sat, 19 Dec 2009 23:52:29 -0600
  • Thread-topic: NSOutlineView Bad Scrolling Behavior (Solved))

Nevermind.  Turning off "Autoresizes Outline Column" in IB appears to have
solved the problem.

On 12/19/09 4:45 PM, "Gordon Apple" <email@hidden> wrote:

> I plan to file a bug report on this unless someone has a better idea to fix
> it.
>
> I have an outline view in a scroller.  The view has two fixed columns on the
> left, then an editable name field.  There are five levels in the data
> hierarchy in the name field.  The view is set to expand the name field column
> with the view width if the window is expanded.
>
> Initially, the view shows only the top level of the hierarchy.  If I expand an
> item, everything looks fine.  Then, when I try to edit any name field, the
> outline view apparently expands by the amount of the level offset, at which
> point the horizontal scrollbar appears.  Unfortunately, it abruptly shifts the
> view to the far left, giving the user (and for awhile, myself) the impression
> that that the first two columns have disappeared.  This is not acceptable
> behavior.  So far I have not figured out a workaround.  This only happens the
> first time.  If the user sufficiently expands the view size AFTER expanding an
> item or editing, this behavior does not occur.  If the view is expanded first,
> then an item is expanded, it does occur.
>
> My theory is the the text fields in the outline view are getting shifted to
> the right with item expansion, but the scrollView isn't get notified until
> text editing starts.  If that's the case, the fix would likely be to initially
> shorten the shifted text fields by the shifted amount so that they still fit
> in the containing view width.  Apparently, expanding the view eventually lines
> up the right ends correctly.  Also, it the outline is in the first column,
> like most of the examples, this would likely not show up.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSOutlineView Bad Scrolling Behavior (From: Gordon Apple <email@hidden>)

  • Prev by Date: Adding a shadow to a UIImage in a UIImageview
  • Next by Date: Re: NSAlert or what?
  • Previous by thread: NSOutlineView Bad Scrolling Behavior
  • Next by thread: NSExpressionForFunction - only works with NSSQLiteStoreType?
  • Index(es):
    • Date
    • Thread