• 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
Scroller position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scroller position


  • Subject: Scroller position
  • From: Jeremy Dronfield <email@hidden>
  • Date: Sun, 23 Jun 2002 16:38:46 +0100

I'm trying to manipulate the scroll position of an NSTextView. When a new .rtf file loads into the View, replacing the previous contents (I'm using the same view here, rather than separate documents), I want the View to snap back to the top, regardless of where it was scrolled to when the user finished reading the first text file. I don't seem to be able to access NSScroller's setFloatValue method - NSScrollView doesn't respond to it. Do I need to create a new TextView instance just to get this effect? I need the equivalent of REALbasic's "Field.ScrollPosition =" (It must be in the API somewhere, for REALbasic to access it).

- Jeremy
_______________________________________________
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.

  • Follow-Ups:
    • Re: Scroller position
      • From: Jason Harris <email@hidden>
  • Prev by Date: Re: Can't get an NSDocument subclass to load nib...
  • Next by Date: Re: NSOutlineView recursive calling crashing app
  • Previous by thread: recovering question
  • Next by thread: Re: Scroller position
  • Index(es):
    • Date
    • Thread