Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6377929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:56:19+00:00 2026-05-25T01:56:19+00:00

Got an NSOutlineView that is configured in the controller’s awakeFromNib, with a datasource and

  • 0

Got an NSOutlineView that is configured in the controller’s awakeFromNib, with a datasource and autosaved expanded nodes.

All working like a charm.

The problem is that somewhere, somebody is saving the state of the scroll position, too.

This means that at launch of the app, the outline view can appear scrolled to the bottom – if that was how the user left it last (this is on Lion if it matters).

What is the best way to open the app with the outline view scrolled to the top? Preferably in awakeFromNib, or at least so the user won’t be seeing a scroll movement.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:56:19+00:00Added an answer on May 25, 2026 at 1:56 am

    I recently started having problems with my NSOutlineView being scrolled down (so that I couldn’t see my elements until I scrolled up), and I used this method :

    In my applicationDidLaunch: method I use this :

    [outlineView scrollPoint:NSMakePoint(0.0f, [outlineView frame].size.height)];
    

    And it seems to work. (I also had the same problem on an IKImageBrowserView, and the same piece of code worked on that too)
    Hope this solution suites you better ^^

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Got a class that serializes into xml with XMLEncoder nicely with all the variables
Background I've got an NSOutlineView that shows TrainingGroup entities. Each TrainingGroup represents a folder
Got a situation where we have a working production website that is moving to
I've got an NSOutlineView bound to an NSTreeController (if that makes a difference), and
Got some code here that isn't working: $(#sidebar ul li:last).each(function(){ $(this).addClass(last); }); Basically I
Got myself in a bit of a pickle here ... working on a CMS
Got some code that is not mine and its producing this warning atm: iehtmlwin.cpp(264)
OK so I've got a sidebar built using an NSOutlineView. I currently have two
Got a task to make a program that registers animals and the object is
Got that error when trying to push updated app to Heroku (probably the same

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.